[package] name = "thoughtsync-uniffi-bindgen" version = "0.1.0" description = "Generates the Kotlin bindings for thoughtsync-ffi" authors = ["bvandeusen"] edition = "2021" # A crate whose ONLY dependency is uniffi itself. # # This started life as a `[[bin]]` inside thoughtsync-ffi, which failed: building # it compiled that crate and therefore the core, reqwest, native-tls and # openssl-sys — for the HOST. The vendored-OpenSSL block in core/Cargo.toml is # scoped to `cfg(target_os = "android")`, so a host build looks for a system # OpenSSL that ci-rust-android has no reason to carry, and the generator died # with "failed to run custom build command for openssl-sys". # # Adding libssl-dev to the image would have worked and been wrong: a code # generator should not link the app's TLS stack to emit Kotlin. Splitting it out # means the generator compiles ~15 small crates and nothing else. # # Still a WORKSPACE MEMBER, deliberately. That is what keeps `uniffi` here and # `uniffi` linked into the .so on one version from one lockfile — they are two # halves of one ABI, and a separate lockfile is exactly how they would drift. [dependencies] uniffi = { version = "0.32", features = ["cli"] }