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