Skip to content

Commit

Permalink
Bug 1919574 - CLI tool to generate the android/ios directories
Browse files Browse the repository at this point in the history
I was going to update the adding a new component docs, but while I was
reading them that the best way to simplify them would be to automate the
process.

* Added the `cargo start-bindings` tool.
* Removed the "Converting an existing Component to UniFFI" HOWTO.  I
  believe that all our existing components have been converted so
  there's no need to keep updating this.
* Added a section about dependencies and the build.gradle file.
* Removed the `pub use` items from the megazord lib.rs files.  I don't
  believe they were needed.
  • Loading branch information
bendk committed Oct 1, 2024
1 parent 7aafd5e commit c35705a
Show file tree
Hide file tree
Showing 18 changed files with 731 additions and 408 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ suggest-bench = ["bench", "-p", "suggest", "--features", "benchmark_api"]
suggest-debug-ingestion-sizes = ["run", "-p", "suggest", "--bin", "debug_ingestion_sizes", "--features", "benchmark_api"]
relevancy = ["run", "-p", "examples-relevancy-cli", "--"]
suggest = ["run", "-p", "examples-suggest-cli", "--"]
start-bindings = ["run", "-p", "start-bindings", "--"]
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

# v132.0 (_2024-09-30_)

## ✨ What's New ✨

### General

- Simplified the process of adding a new component by adding a tool that can autogenerate the
initial UniFFI/bindings code.

## 🦊 What's Changed 🦊

### Glean
Expand Down
135 changes: 121 additions & 14 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ members = [
"megazords/ios-rust/focus",
"tools/protobuf-gen",
"tools/embedded-uniffi-bindgen",
"tools/start-bindings",
"automation/swift-components-docs",

"examples/*/",
Expand Down
2 changes: 1 addition & 1 deletion DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ The following text applies to code linked from these dependencies:
[iana-time-zone](https://github.com/strawlab/iana-time-zone),
[id-arena](https://github.com/fitzgen/id-arena),
[idna](https://github.com/servo/rust-url/),
[indexmap](https://github.com/bluss/indexmap),
[indexmap](https://github.com/indexmap-rs/indexmap),
[io-lifetimes](https://github.com/sunfishcode/io-lifetimes),
[ipnet](https://github.com/krisprice/ipnet),
[itertools](https://github.com/rust-itertools/itertools),
Expand Down
Loading

0 comments on commit c35705a

Please sign in to comment.