Skip to content

Commit

Permalink
Delete cras_rust binding_generator
Browse files Browse the repository at this point in the history
All generated headers are migrated to use cras_cbindgen.

BUG=b:314126577
TEST=CQ

Change-Id: If0600198e27aa869be7e972a478ba478369ed994
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5214518
Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com>
Commit-Queue: Li-Yu Yu <aaronyu@google.com>
Tested-by: Li-Yu Yu <aaronyu@google.com>
Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
  • Loading branch information
afq984 authored and Chromeos LUCI committed Jan 23, 2024
1 parent 413175c commit aead58d
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 110 deletions.
27 changes: 1 addition & 26 deletions Cargo.Bazel.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "76ff8f0db98b5e1c87b058a3685b15942be5aa12acbde920fe612ab96a3f982f",
"checksum": "a5656bffa44079050fdc1e525b280c63723a882de2086765f35207d44bbdc2b6",
"crates": {
"aho-corasick 0.7.20": {
"name": "aho-corasick",
Expand Down Expand Up @@ -459,30 +459,6 @@
},
"license": "BSD-3-Clause"
},
"binding_generator 0.1.0": {
"name": "binding_generator",
"version": "0.1.0",
"repository": null,
"targets": [],
"library_target_name": null,
"common_attrs": {
"compile_data_glob": [
"**"
],
"deps": {
"common": [
{
"id": "cbindgen 0.24.3",
"target": "cbindgen"
}
],
"selects": {}
},
"edition": "2021",
"version": "0.1.0"
},
"license": null
},
"bitflags 1.3.2": {
"name": "bitflags",
"version": "1.3.2",
Expand Down Expand Up @@ -8188,7 +8164,6 @@
"binary_crates": [],
"workspace_members": {
"audio_processor 0.1.0": "audio_processor",
"binding_generator 0.1.0": "cras/src/server/rust/binding_generator",
"cras 0.1.1": "cras/src/server/rust",
"cras_cbindgen 0.1.0": "rules/cbindgen",
"cras_common 0.1.0": "cras/common",
Expand Down
7 changes: 0 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ members = [
"cras/server/s2",
"cras/src/server/rust",
"cras/src/server/rust/staticlib",
"cras/src/server/rust/binding_generator",
"rock",
"rules/cbindgen",
]
Expand Down
1 change: 0 additions & 1 deletion WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ crates_repository(
"//cras/server/platform/dlc:Cargo.toml",
"//cras/server/platform/features:Cargo.toml",
"//cras/src/server/rust:Cargo.toml",
"//cras/src/server/rust:binding_generator/Cargo.toml",
"//cras/src/server/rust:staticlib/Cargo.toml",
"//rules/cbindgen:Cargo.toml",
],
Expand Down
8 changes: 0 additions & 8 deletions cras/src/server/rust/binding_generator/Cargo.toml

This file was deleted.

64 changes: 0 additions & 64 deletions cras/src/server/rust/binding_generator/src/main.rs

This file was deleted.

3 changes: 0 additions & 3 deletions devtools/rust_generate.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ set -eux

ADHD="$(realpath "$(dirname "${BASH_SOURCE[0]}")/..")"

cd "${ADHD}/cras/src/server/rust/binding_generator"
cargo run

cd "${ADHD}"
CARGO_BAZEL_REPIN=true bazel sync --only=crate_index

Expand Down

0 comments on commit aead58d

Please sign in to comment.