diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f38b567509869b4280df4a0ade8541cdd24ced9f..ccf0155dc35092a6d93277b75154ea2ab172cab3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -75,6 +75,33 @@ fmt_and_clippy: - cargo clippy -- -V - cargo clippy -Zgit=shallow-deps --features runtime-benchmarks --all --tests -- -D warnings +build_doc: + extends: .env + stage: tests #For testing + image: rust:1-bullseye + rules: # For testing + - if: $CI_COMMIT_REF_NAME =~ /^wip*$/ + when: manual + - if: $CI_COMMIT_TAG + when: never + - if: '$CI_MERGE_REQUEST_ID || $CI_COMMIT_BRANCH == "master"' + - when: manual + variables: + DEBIAN_FRONTEND: noninteractive + BASE_URL: "https://duniter.org/toDefine" + SERVER_IP: "" + SERVER_USER: "" + SERVER_PATH: "" + before_script: + - apt update && apt-get install openssh-client rsync + - eval $(ssh-agent -s) + - echo "$ SSH_PRIVATE_KEY" | ssh-add - + script: + - apt-get update + - apt-get install -y clang cmake protobuf-compiler + - cargo xtask gen-doc + - rsync -a .target/doc ${SERVER_USER}@${SERVER_IP}:${SERVER_PATH} + run_benchmarks: extends: .env stage: tests diff --git a/Cargo.lock b/Cargo.lock index 047fde2de80d37ebeb01bd51bf243e35d3d49efb..1192736ed7839e27a712c9370458075b982bc63e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -633,9 +633,9 @@ dependencies = [ [[package]] name = "async-io" -version = "2.3.1" +version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f97ab0c5b00a7cdbe5a371b9a782ee7be1316095885c8a4ea1daf490eb0ef65" +checksum = "dcccb0f599cfa2f8ace422d3555572f47424da5648a4382a9dd0310ff8210884" dependencies = [ "async-lock 3.3.0", "cfg-if", @@ -1833,11 +1833,11 @@ dependencies = [ [[package]] name = "ctrlc" -version = "3.4.2" +version = "3.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b467862cc8610ca6fc9a1532d7777cee0804e678ab45410897b9396495994a0b" +checksum = "672465ae37dc1bc6380a6547a8883d5dd397b0f1faaad4f265726cc7042a5345" dependencies = [ - "nix 0.27.1", + "nix 0.28.0", "windows-sys 0.52.0", ] @@ -4180,7 +4180,7 @@ dependencies = [ "ipnet", "log", "rtnetlink", - "system-configuration", + "system-configuration 0.5.1", "tokio", "windows", ] @@ -5855,12 +5855,13 @@ dependencies = [ [[package]] name = "nix" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" +checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4" dependencies = [ "bitflags 2.4.2", "cfg-if", + "cfg_aliases", "libc", ] @@ -7729,9 +7730,9 @@ checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "reqwest" -version = "0.11.24" +version = "0.11.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6920094eb85afde5e4a138be3f2de8bbdf28000f0029e72c45025a56b042251" +checksum = "0eea5a9eb898d3783f17c6407670e3592fd174cb81a10e51d4c37f49450b9946" dependencies = [ "base64 0.21.7", "bytes", @@ -7753,7 +7754,7 @@ dependencies = [ "serde_json", "serde_urlencoded", "sync_wrapper", - "system-configuration", + "system-configuration 0.6.0", "tokio", "tower-service", "url", @@ -10098,7 +10099,7 @@ dependencies = [ [[package]] name = "sp-crypto-ec-utils" version = "0.10.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" +source = "git+https://github.com/paritytech/polkadot-sdk#a6713c55fd5082d333518c3ca13f2a4294726fcc" dependencies = [ "ark-bls12-377", "ark-bls12-377-ext", @@ -10161,7 +10162,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" +source = "git+https://github.com/paritytech/polkadot-sdk#a6713c55fd5082d333518c3ca13f2a4294726fcc" dependencies = [ "proc-macro2", "quote", @@ -10197,7 +10198,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.25.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" +source = "git+https://github.com/paritytech/polkadot-sdk#a6713c55fd5082d333518c3ca13f2a4294726fcc" dependencies = [ "environmental", "parity-scale-codec", @@ -10406,7 +10407,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" +source = "git+https://github.com/paritytech/polkadot-sdk#a6713c55fd5082d333518c3ca13f2a4294726fcc" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -10438,7 +10439,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" +source = "git+https://github.com/paritytech/polkadot-sdk#a6713c55fd5082d333518c3ca13f2a4294726fcc" dependencies = [ "Inflector", "expander", @@ -10531,7 +10532,7 @@ source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-sub [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" +source = "git+https://github.com/paritytech/polkadot-sdk#a6713c55fd5082d333518c3ca13f2a4294726fcc" [[package]] name = "sp-storage" @@ -10549,7 +10550,7 @@ dependencies = [ [[package]] name = "sp-storage" version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" +source = "git+https://github.com/paritytech/polkadot-sdk#a6713c55fd5082d333518c3ca13f2a4294726fcc" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10587,7 +10588,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" +source = "git+https://github.com/paritytech/polkadot-sdk#a6713c55fd5082d333518c3ca13f2a4294726fcc" dependencies = [ "parity-scale-codec", "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk)", @@ -10688,7 +10689,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" +source = "git+https://github.com/paritytech/polkadot-sdk#a6713c55fd5082d333518c3ca13f2a4294726fcc" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -11163,7 +11164,18 @@ checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" dependencies = [ "bitflags 1.3.2", "core-foundation", - "system-configuration-sys", + "system-configuration-sys 0.5.0", +] + +[[package]] +name = "system-configuration" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "658bc6ee10a9b4fcf576e9b0819d95ec16f4d2c02d39fd83ac1c8789785c4a42" +dependencies = [ + "bitflags 2.4.2", + "core-foundation", + "system-configuration-sys 0.6.0", ] [[package]] @@ -11176,6 +11188,16 @@ dependencies = [ "libc", ] +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "tap" version = "1.0.1"