aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Chataing <henrichataing@google.com>2023-11-03 23:35:15 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-11-03 23:35:15 +0000
commit8b898017f1b19c97241a0678bc317be9de8f794a (patch)
tree93b217f5b12c69e9ffe07cfae2289a9ebaf31379
parent0231e146b6ca2dcb0aac285cae5f793521d8187c (diff)
parent17f91929a66f0b2f6872ac854c4930e87fb9a33d (diff)
downloadpdl-runtime-8b898017f1b19c97241a0678bc317be9de8f794a.tar.gz
Upgrade pdl-compiler to 0.2.2 am: fe5d6f1b23 am: 44f11d08ed am: 17f91929a6
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pdl-runtime/+/2812414 Change-Id: Ia07ee28f7aacc8c1360f4d4e1ea67a2c41e2f73f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--Android.bp5
-rw-r--r--Cargo.toml2
-rw-r--r--Cargo.toml.orig2
-rw-r--r--METADATA6
-rw-r--r--src/lib.rs14
5 files changed, 8 insertions, 21 deletions
diff --git a/Android.bp b/Android.bp
index d660707..b3307b5 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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",
}
diff --git a/Cargo.toml b/Cargo.toml
index 57a1e84..eefc76f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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/"
diff --git a/METADATA b/METADATA
index bef278d..e16a6a6 100644
--- a/METADATA
+++ b/METADATA
@@ -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
}
}
diff --git a/src/lib.rs b/src/lib.rs
index 728a7c2..4e78bf9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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
- }
-}