aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2023-02-01 14:21:05 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-02-01 14:21:05 +0000
commit539062ff5153595e1ea8b70816b0cd8a09f859a0 (patch)
tree93d3f3fdebedb807b56422c7d5d99d00ad659e2d
parentd934e35970cc3383bbd740a174d89e0ee4a1588e (diff)
parent93d5ef46db2c4a89d8b575e03f6920f31033069e (diff)
downloadarbitrary-539062ff5153595e1ea8b70816b0cd8a09f859a0.tar.gz
Upgrade arbitrary to 1.2.3 am: e49996a989 am: 93d5ef46db
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/arbitrary/+/2411887 Change-Id: I3d6faa78838065cd3dfe96304ff75b3761ee023b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--.cargo_vcs_info.json2
-rw-r--r--.github/workflows/rust.yml10
-rw-r--r--Android.bp6
-rw-r--r--CHANGELOG.md30
-rw-r--r--Cargo.lock.saved56
-rw-r--r--Cargo.toml5
-rw-r--r--Cargo.toml.orig4
-rw-r--r--METADATA10
8 files changed, 47 insertions, 76 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json
index b532b6d..4b94df4 100644
--- a/.cargo_vcs_info.json
+++ b/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "48c4bfd52b167da94a5db906fe7dd2da7b92215e"
+ "sha1": "98044ba8b0f7d730b500fa3b4f2e96a5edcd926d"
},
"path_in_vcs": ""
} \ No newline at end of file
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 63b927f..72f3d12 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -7,7 +7,7 @@ jobs:
name: Vanilla Build
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v3
- run: rustup update
- name: Build
run: cargo build --verbose --all
@@ -17,7 +17,7 @@ jobs:
name: All Features Enabled Build
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v3
- run: rustup update
- name: Build
run: cargo build --verbose --all-features --all
@@ -29,7 +29,7 @@ jobs:
name: Clippy
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v3
- run: rustup update
- run: rustup component add clippy
- run: cargo clippy --all-features --workspace -- -Dclippy::all
@@ -37,7 +37,7 @@ jobs:
name: Check rustfmt
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v3
- run: rustup update
- run: rustup component add rustfmt --toolchain stable
- run: cargo +stable fmt --all -- --check
@@ -45,7 +45,7 @@ jobs:
name: Run `int_in_range` fuzz target
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v3
- run: rustup update
- name: "Install nightly"
run: rustup toolchain install nightly && rustup default nightly
diff --git a/Android.bp b/Android.bp
index 02a046f..1f25636 100644
--- a/Android.bp
+++ b/Android.bp
@@ -42,7 +42,7 @@ rust_test {
host_supported: true,
crate_name: "arbitrary",
cargo_env_compat: true,
- cargo_pkg_version: "1.2.0",
+ cargo_pkg_version: "1.2.3",
srcs: ["src/lib.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
@@ -62,7 +62,7 @@ rust_test {
host_supported: true,
crate_name: "arbitrary",
cargo_env_compat: true,
- cargo_pkg_version: "1.2.0",
+ cargo_pkg_version: "1.2.3",
srcs: ["tests/derive.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
@@ -85,7 +85,7 @@ rust_library_rlib {
host_supported: true,
crate_name: "arbitrary",
cargo_env_compat: true,
- cargo_pkg_version: "1.2.0",
+ cargo_pkg_version: "1.2.3",
srcs: ["src/lib.rs"],
edition: "2018",
features: [
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e0ed4d8..2d4bb72 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,7 +20,7 @@ Released YYYY-MM-DD.
### Fixed
-* TODO (or remove section if none)
+* (Included in `arbitrary_derive` 1.2.1) Fixed bug in Derive macro around `no_std` path uses [#131](https://github.com/rust-fuzz/arbitrary/pull/131)
### Security
@@ -28,6 +28,34 @@ Released YYYY-MM-DD.
--------------------------------------------------------------------------------
+## 1.2.3
+
+Released 2023-01-20.
+
+### Fixed
+
+* The `derive(Arbitrary)` will now annotate the generated `impl`s with a `#[automatically_derived]`
+ attribute to indicate to e.g. clippy that lints should not fire for the code within the derived
+ implementation.
+
+## 1.2.2
+
+Released 2023-01-03.
+
+### Fixed
+
+* Ensured that `arbitrary` and `derive_arbitrary` versions are synced up so that
+ they don't, e.g., emit generated code that depends on newer versions of
+ `arbitrary` than the one currently in
+ use. [#134](https://github.com/rust-fuzz/arbitrary/issues/134)
+
+## 1.2.1
+
+### Fixed
+
+* Fixed an issue where `std::thread_local!` macro invocations in derive code
+ were not fully prefixed, causing confusing build errors in certain situations.
+
## 1.2.0
Released 2022-10-20.
diff --git a/Cargo.lock.saved b/Cargo.lock.saved
deleted file mode 100644
index 4a05331..0000000
--- a/Cargo.lock.saved
+++ /dev/null
@@ -1,56 +0,0 @@
-# This file is automatically @generated by Cargo.
-# It is not intended for manual editing.
-version = 3
-
-[[package]]
-name = "arbitrary"
-version = "1.2.0"
-dependencies = [
- "derive_arbitrary",
-]
-
-[[package]]
-name = "derive_arbitrary"
-version = "1.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4903dff04948f22033ca30232ab8eca2c3fc4c913a8b6a34ee5199699814817f"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "proc-macro2"
-version = "1.0.24"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71"
-dependencies = [
- "unicode-xid",
-]
-
-[[package]]
-name = "quote"
-version = "1.0.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "991431c3519a3f36861882da93630ce66b52918dcf1b8e2fd66b397fc96f28df"
-dependencies = [
- "proc-macro2",
-]
-
-[[package]]
-name = "syn"
-version = "1.0.60"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081"
-dependencies = [
- "proc-macro2",
- "quote",
- "unicode-xid",
-]
-
-[[package]]
-name = "unicode-xid"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
diff --git a/Cargo.toml b/Cargo.toml
index b844ddd..9b11611 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@
edition = "2018"
rust-version = "1.63.0"
name = "arbitrary"
-version = "1.2.0"
+version = "1.2.3"
authors = [
"The Rust-Fuzz Project Developers",
"Nick Fitzgerald <fitzgen@gmail.com>",
@@ -32,7 +32,6 @@ keywords = [
categories = ["development-tools::testing"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-fuzz/arbitrary/"
-resolver = "1"
[[example]]
name = "derive_enum"
@@ -44,7 +43,7 @@ path = "./tests/derive.rs"
required-features = ["derive"]
[dependencies.derive_arbitrary]
-version = "1.1.6"
+version = "1.2.3"
optional = true
[features]
diff --git a/Cargo.toml.orig b/Cargo.toml.orig
index 9a72d15..ed72b4c 100644
--- a/Cargo.toml.orig
+++ b/Cargo.toml.orig
@@ -1,6 +1,6 @@
[package]
name = "arbitrary"
-version = "1.2.0" # Make sure this matches the derive crate version
+version = "1.2.3" # Make sure this matches the derive crate version (not including the patch version)
authors = [
"The Rust-Fuzz Project Developers",
"Nick Fitzgerald <fitzgen@gmail.com>",
@@ -20,7 +20,7 @@ documentation = "https://docs.rs/arbitrary/"
rust-version = "1.63.0"
[dependencies]
-derive_arbitrary = { version = "1.1.6", path = "./derive", optional = true }
+derive_arbitrary = { version = "1.2.3", path = "./derive", optional = true }
[features]
# Turn this feature on to enable support for `#[derive(Arbitrary)]`.
diff --git a/METADATA b/METADATA
index 9b951cf..8621082 100644
--- a/METADATA
+++ b/METADATA
@@ -11,13 +11,13 @@ third_party {
}
url {
type: ARCHIVE
- value: "https://static.crates.io/crates/arbitrary/arbitrary-1.2.0.crate"
+ value: "https://static.crates.io/crates/arbitrary/arbitrary-1.2.3.crate"
}
- version: "1.2.0"
+ version: "1.2.3"
license_type: NOTICE
last_upgrade_date {
- year: 2022
- month: 12
- day: 5
+ year: 2023
+ month: 2
+ day: 1
}
}