diff options
author | Henri Chataing <henrichataing@google.com> | 2023-11-03 23:29:27 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-11-03 23:29:27 +0000 |
commit | 17f91929a66f0b2f6872ac854c4930e87fb9a33d (patch) | |
tree | 93b217f5b12c69e9ffe07cfae2289a9ebaf31379 | |
parent | c3e01062da960236d4abdff7cb007a4c52c585c3 (diff) | |
parent | 44f11d08ed04f140870115e2930f4de196dc5483 (diff) | |
download | pdl-runtime-17f91929a66f0b2f6872ac854c4930e87fb9a33d.tar.gz |
Upgrade pdl-compiler to 0.2.2 am: fe5d6f1b23 am: 44f11d08ed
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pdl-runtime/+/2812414
Change-Id: Ie6c046f6e037656513d690cca25166a8be73dd62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | Android.bp | 5 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | Cargo.toml.orig | 2 | ||||
-rw-r--r-- | METADATA | 6 | ||||
-rw-r--r-- | src/lib.rs | 14 |
5 files changed, 8 insertions, 21 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --run --device --tests. +// This file is generated by cargo2android.py --min-sdk-version 33 --run --device --tests. // Do not modify this file as changes will be overridden on upgrade. @@ -8,7 +8,7 @@ rust_library { host_supported: true, crate_name: "pdl_runtime", cargo_env_compat: true, - cargo_pkg_version: "0.2.1", + cargo_pkg_version: "0.2.2", srcs: ["src/lib.rs"], edition: "2021", rustlibs: [ @@ -21,4 +21,5 @@ rust_library { ], product_available: true, vendor_available: true, + min_sdk_version: "33", } @@ -12,7 +12,7 @@ [package] edition = "2021" name = "pdl-runtime" -version = "0.2.1" +version = "0.2.2" authors = [ "Henri Chataing <henrichataing@google.com>", "David de Jesus Duarte <licorne@google.com>", diff --git a/Cargo.toml.orig b/Cargo.toml.orig index 56311b3..9f6ad40 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,6 +1,6 @@ [package] name = "pdl-runtime" -version = "0.2.1" +version = "0.2.2" edition = "2021" description = "PDL's runtime library" repository = "https://github.com/google/pdl/" @@ -7,13 +7,13 @@ third_party { } identifier { type: "Archive" - value: "https://static.crates.io/crates/pdl-runtime/pdl-runtime-0.2.1.crate" + value: "https://static.crates.io/crates/pdl-runtime/pdl-runtime-0.2.2.crate" } - version: "0.2.1" + version: "0.2.2" license_type: NOTICE last_upgrade_date { year: 2023 month: 10 - day: 18 + day: 31 } } @@ -43,17 +43,3 @@ pub trait Packet { fn to_bytes(self) -> Bytes; fn to_vec(self) -> Vec<u8>; } - -/// Private prevents users from creating arbitrary scalar values -/// in situations where the value needs to be validated. -/// Users can freely deref the value, but only the backend -/// may create it. -#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord)] -pub struct Private<T>(T); - -impl<T> std::ops::Deref for Private<T> { - type Target = T; - fn deref(&self) -> &Self::Target { - &self.0 - } -} |