From 8857c851f66124d3749b108fb1af67395f08e02a Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Mon, 14 Nov 2022 18:00:23 -0600 Subject: [PATCH] Move rust workspace to top directory --- .github/workflows/cont_integration.yml | 6 ------ bdk-ffi/Cargo.lock => Cargo.lock | 0 Cargo.toml | 12 ++++++++++++ .../bdk-ffi-bindgen => bdk-ffi-bindgen}/Cargo.toml | 0 .../bdk-ffi-bindgen => bdk-ffi-bindgen}/src/main.rs | 0 bdk-ffi/Cargo.toml | 12 ------------ 6 files changed, 12 insertions(+), 18 deletions(-) rename bdk-ffi/Cargo.lock => Cargo.lock (100%) create mode 100644 Cargo.toml rename {bdk-ffi/bdk-ffi-bindgen => bdk-ffi-bindgen}/Cargo.toml (100%) rename {bdk-ffi/bdk-ffi-bindgen => bdk-ffi-bindgen}/src/main.rs (100%) diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index 70d390d..af44759 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -12,9 +12,6 @@ jobs: build-test: name: Build and test runs-on: ubuntu-latest - defaults: - run: - working-directory: bdk-ffi strategy: matrix: rust: @@ -54,9 +51,6 @@ jobs: fmt: name: Rust fmt runs-on: ubuntu-latest - defaults: - run: - working-directory: bdk-ffi steps: - name: Checkout uses: actions/checkout@v2 diff --git a/bdk-ffi/Cargo.lock b/Cargo.lock similarity index 100% rename from bdk-ffi/Cargo.lock rename to Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..b8d84b0 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,12 @@ +[workspace] +members = ["bdk-ffi", "bdk-ffi-bindgen"] +default-members = ["bdk-ffi", "bdk-ffi-bindgen"] +exclude = ["api-docs", "bdk-android", "bdk-jvm", "bdk-python", "bdk-swift"] + +[profile.release-smaller] +inherits = "release" +opt-level = 'z' # Optimize for size. +lto = true # Enable Link Time Optimization +codegen-units = 1 # Reduce number of codegen units to increase optimizations. +panic = 'abort' # Abort on panic +strip = true # Strip symbols from binary* \ No newline at end of file diff --git a/bdk-ffi/bdk-ffi-bindgen/Cargo.toml b/bdk-ffi-bindgen/Cargo.toml similarity index 100% rename from bdk-ffi/bdk-ffi-bindgen/Cargo.toml rename to bdk-ffi-bindgen/Cargo.toml diff --git a/bdk-ffi/bdk-ffi-bindgen/src/main.rs b/bdk-ffi-bindgen/src/main.rs similarity index 100% rename from bdk-ffi/bdk-ffi-bindgen/src/main.rs rename to bdk-ffi-bindgen/src/main.rs diff --git a/bdk-ffi/Cargo.toml b/bdk-ffi/Cargo.toml index 63cd96f..efac866 100644 --- a/bdk-ffi/Cargo.toml +++ b/bdk-ffi/Cargo.toml @@ -5,10 +5,6 @@ authors = ["Steve Myers ", "Sudarsan Balaji