Convert to cargo_embargo
Bug: 302021139 Test: m libmls_rs_uniffi in local checkout Change-Id: I4a6c562bf09b844b71b91e71ca830d38bf3e71c0
This commit is contained in:
parent
a8fc566120
commit
3182da2136
3 changed files with 30 additions and 15 deletions
|
@ -1,16 +1,7 @@
|
||||||
// Copyright 2024, The Android Open Source Project
|
// This file is generated by cargo_embargo.
|
||||||
//
|
// Do not modify this file after the first "rust_*" or "genrule" module
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// because the changes will be overridden on upgrade.
|
||||||
// you may not use this file except in compliance with the License.
|
// Content before the first "rust_*" or "genrule" module is preserved.
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
package {
|
package {
|
||||||
default_applicable_licenses: ["platform_system_security_mls_rs_crypto_boringssl_license"],
|
default_applicable_licenses: ["platform_system_security_mls_rs_crypto_boringssl_license"],
|
||||||
|
@ -32,7 +23,10 @@ rust_library {
|
||||||
name: "libmls_rs_crypto_boringssl",
|
name: "libmls_rs_crypto_boringssl",
|
||||||
host_supported: true,
|
host_supported: true,
|
||||||
crate_name: "mls_rs_crypto_boringssl",
|
crate_name: "mls_rs_crypto_boringssl",
|
||||||
srcs: ["src/lib.rs"],
|
cargo_env_compat: true,
|
||||||
|
cargo_pkg_version: "0.1.0",
|
||||||
|
crate_root: "src/lib.rs",
|
||||||
|
edition: "2021",
|
||||||
cfgs: ["mls_build_async"],
|
cfgs: ["mls_build_async"],
|
||||||
rustlibs: [
|
rustlibs: [
|
||||||
"libbssl_crypto",
|
"libbssl_crypto",
|
||||||
|
@ -47,8 +41,8 @@ rust_library {
|
||||||
"libmaybe_async",
|
"libmaybe_async",
|
||||||
],
|
],
|
||||||
apex_available: [
|
apex_available: [
|
||||||
"//apex_available:anyapex",
|
|
||||||
"//apex_available:platform",
|
"//apex_available:platform",
|
||||||
|
"//apex_available:anyapex",
|
||||||
],
|
],
|
||||||
product_available: true,
|
product_available: true,
|
||||||
vendor_available: true,
|
vendor_available: true,
|
||||||
|
|
17
mls/mls-rs-crypto-boringssl/Cargo.toml
Normal file
17
mls/mls-rs-crypto-boringssl/Cargo.toml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
[package]
|
||||||
|
name = "mls-rs-crypto-boringssl"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
bssl-crypto = { path = "../../../../external/boringssl/src/rust/bssl-crypto" }
|
||||||
|
mls-rs-codec = "0.5.3"
|
||||||
|
mls-rs-core = "0.18.0"
|
||||||
|
mls-rs-crypto-traits = "0.10.0"
|
||||||
|
thiserror = "1.0.49"
|
||||||
|
zeroize = { version = "1.6.0", features = ["zeroize_derive"] }
|
||||||
|
maybe-async = "0.2.10"
|
||||||
|
|
||||||
|
[target.'cfg(mls_build_async)'.dependencies]
|
||||||
|
async-trait = "0.1.74"
|
||||||
|
|
4
mls/mls-rs-crypto-boringssl/cargo_embargo.json
Normal file
4
mls/mls-rs-crypto-boringssl/cargo_embargo.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"extra_cfg": ["mls_build_async"],
|
||||||
|
"run_cargo": false
|
||||||
|
}
|
Loading…
Reference in a new issue