Move rust workspace to top directory

This commit is contained in:
Steve Myers 2022-11-14 18:00:23 -06:00
parent 632f48e75a
commit 8857c851f6
No known key found for this signature in database
GPG Key ID: 8105A46B22C2D051
6 changed files with 12 additions and 18 deletions

View File

@ -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

View File

12
Cargo.toml Normal file
View File

@ -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*

View File

@ -5,10 +5,6 @@ authors = ["Steve Myers <steve@notmandatory.org>", "Sudarsan Balaji <sudarsan.ba
edition = "2018"
license = "MIT OR Apache-2.0"
[workspace]
members = [".","bdk-ffi-bindgen"]
default-members = [".", "bdk-ffi-bindgen"]
[lib]
crate-type = ["staticlib", "cdylib"]
name = "bdkffi"
@ -21,11 +17,3 @@ uniffi = { version = "0.21.0", features = ["builtin-bindgen"] }
[build-dependencies]
uniffi_build = { version = "0.21.0", features = ["builtin-bindgen"] }
[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*