From 349506672a5468b39c0432e7e861c643b9c6ee36 Mon Sep 17 00:00:00 2001 From: David LeGare Date: Wed, 2 Mar 2022 16:21:09 +0000 Subject: Update semver to 1.0.6 Test: cd external/rust/crates && atest --host -c Change-Id: I52b09ed17cc380d3f68f2647987d803ee85be3bb --- .cargo_vcs_info.json | 6 +++++ .clippy.toml | 1 + .github/workflows/ci.yml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 5 ++++ Android.bp | 2 +- Cargo.lock | 16 ------------ Cargo.toml | 2 +- Cargo.toml.orig | 2 +- METADATA | 9 +++---- README.md | 2 +- src/lib.rs | 2 +- 11 files changed, 87 insertions(+), 26 deletions(-) create mode 100644 .cargo_vcs_info.json create mode 100644 .clippy.toml create mode 100644 .github/workflows/ci.yml create mode 100644 .gitignore delete mode 100644 Cargo.lock diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json new file mode 100644 index 0000000..a7e226d --- /dev/null +++ b/.cargo_vcs_info.json @@ -0,0 +1,6 @@ +{ + "git": { + "sha1": "8d8bdb2adaf4572b3c4e8502e7498838b2cf7ccb" + }, + "path_in_vcs": "" +} \ No newline at end of file diff --git a/.clippy.toml b/.clippy.toml new file mode 100644 index 0000000..3d30690 --- /dev/null +++ b/.clippy.toml @@ -0,0 +1 @@ +msrv = "1.31.0" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fd7b48a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,66 @@ +name: CI + +on: + push: + pull_request: + schedule: [cron: "40 1 * * *"] + +env: + RUSTFLAGS: -Dwarnings + +jobs: + test: + name: Rust ${{matrix.rust}} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + rust: [nightly, beta, stable, 1.52.0, 1.46.0, 1.45.0, 1.40.0, 1.39.0, 1.36.0, 1.33.0, 1.32.0, 1.31.0] + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{matrix.rust}} + - run: cargo test + - run: cargo check --no-default-features + - run: cargo check --features serde + - run: cargo check --no-default-features --features serde + + node: + name: Node + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@stable + - run: npm install semver + - run: cargo test + env: + RUSTFLAGS: --cfg test_node_semver ${{env.RUSTFLAGS}} + + clippy: + name: Clippy + runs-on: ubuntu-latest + if: github.event_name != 'pull_request' + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@clippy + - run: cargo clippy --tests --benches -- -Dclippy::all -Dclippy::pedantic + + miri: + name: Miri + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@nightly + with: + components: miri + - run: cargo miri test + + outdated: + name: Outdated + runs-on: ubuntu-latest + if: github.event_name != 'pull_request' + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/install@cargo-outdated + - run: cargo outdated --exit-code 1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..744c1ef --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/node_modules +/package-lock.json +/package.json +/target +Cargo.lock diff --git a/Android.bp b/Android.bp index 323f603..402c65c 100644 --- a/Android.bp +++ b/Android.bp @@ -43,7 +43,7 @@ rust_library { name: "libsemver", crate_name: "semver", cargo_env_compat: true, - cargo_pkg_version: "1.0.5", + cargo_pkg_version: "1.0.6", srcs: ["src/lib.rs"], edition: "2018", features: [ diff --git a/Cargo.lock b/Cargo.lock deleted file mode 100644 index 7dcbc7e..0000000 --- a/Cargo.lock +++ /dev/null @@ -1,16 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "semver" -version = "1.0.5" -dependencies = [ - "serde", -] - -[[package]] -name = "serde" -version = "1.0.136" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789" diff --git a/Cargo.toml b/Cargo.toml index f1f5e01..e250936 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ edition = "2018" rust-version = "1.31" name = "semver" -version = "1.0.5" +version = "1.0.6" authors = ["David Tolnay "] description = "Parser and evaluator for Cargo's flavor of Semantic Versioning" documentation = "https://docs.rs/semver" diff --git a/Cargo.toml.orig b/Cargo.toml.orig index 2fa715c..ef65cdc 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,6 +1,6 @@ [package] name = "semver" -version = "1.0.5" +version = "1.0.6" authors = ["David Tolnay "] edition = "2018" rust-version = "1.31" diff --git a/METADATA b/METADATA index e999a46..98ff1b7 100644 --- a/METADATA +++ b/METADATA @@ -7,14 +7,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/semver/semver-1.0.5.crate" + value: "https://static.crates.io/crates/semver/semver-1.0.6.crate" } - version: "1.0.5" - # Dual-licensed, using the least restrictive per go/thirdpartylicenses#same. + version: "1.0.6" license_type: NOTICE last_upgrade_date { year: 2022 - month: 2 - day: 18 + month: 3 + day: 1 } } diff --git a/README.md b/README.md index 109efa3..9de11d7 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ semver [github](https://github.com/dtolnay/semver) [crates.io](https://crates.io/crates/semver) -[docs.rs](https://docs.rs/semver/1.0.0) +[docs.rs](https://docs.rs/semver) [build status](https://github.com/dtolnay/semver/actions?query=branch%3Amaster) A parser and evaluator for Cargo's flavor of Semantic Versioning. diff --git a/src/lib.rs b/src/lib.rs index da178d5..5887ea2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -60,7 +60,7 @@ //! //! [Specifying Dependencies]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html -#![doc(html_root_url = "https://docs.rs/semver/1.0.5")] +#![doc(html_root_url = "https://docs.rs/semver/1.0.6")] #![cfg_attr(doc_cfg, feature(doc_cfg))] #![cfg_attr(all(not(feature = "std"), not(no_alloc_crate)), no_std)] #![cfg_attr(not(no_unsafe_op_in_unsafe_fn_lint), deny(unsafe_op_in_unsafe_fn))] -- cgit v1.2.3 From af34ed0bbc8064aea3fc2860eb871f2eadeda3dd Mon Sep 17 00:00:00 2001 From: David LeGare Date: Wed, 2 Mar 2022 21:32:07 +0000 Subject: Update TEST_MAPPING Test: cd external/rust/crates && atest --host -c Change-Id: I78fcb83ce5c9cc29ae42271564db320b596c5fed --- TEST_MAPPING | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 TEST_MAPPING diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 0000000..061ff86 --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,13 @@ +// Generated by update_crate_tests.py for tests that depend on this crate. +{ + "presubmit": [ + { + "name": "virtualizationservice_device_test" + } + ], + "presubmit-rust": [ + { + "name": "virtualizationservice_device_test" + } + ] +} -- cgit v1.2.3