Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy authored Dec 31, 2023
2 parents 3b97a55 + e7f47de commit 9d01527
Show file tree
Hide file tree
Showing 331 changed files with 4,626 additions and 11,494 deletions.
5 changes: 4 additions & 1 deletion .all-contributors-custom.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- Desdaemon: Support not only simple enums but also enums with fields which gets translated to native enum or sealed freezed class in Dart. Support the Option type as nullable types in Dart. Support Vec of Strings type. Support tuple type. Support comments in code. Add marker attributes for future usage. Add Linux and Windows support for with-flutter example, and make CI works for that. Avoid parameter collision. Overhaul the documentation and add several chapters to demonstrate configuring a Flutter+Rust project in all five platforms. Refactor command module. Precompiled binary CI workflow. Fix bugs. Add support for the Web platform, parallel to the existing mobile/desktop platforms, via WASM and JavaScript as intermediate values. GitHub retry actions. Implement draft of opaque types. Refactor Boxed and Option. Impl list of dates and optionals. Parameter defaults. Refactor CLI. Refactor codegen errors.
- Desdaemon: Support not only simple enums but also enums with fields which gets translated to native enum or sealed freezed class in Dart. Support the Option type as nullable types in Dart. Support Vec of Strings type. Support tuple type. Support comments in code. Add marker attributes for future usage. Add Linux and Windows support for with-flutter example, and make CI works for that. Avoid parameter collision. Overhaul the documentation and add several chapters to demonstrate configuring a Flutter+Rust project in all five platforms. Refactor command module. Precompiled binary CI workflow. Fix bugs. Add support for the Web platform, parallel to the existing mobile/desktop platforms, via WASM and JavaScript as intermediate values. GitHub retry actions. Implement draft of opaque types. Refactor Boxed and Option. Impl list of dates and optionals. Parameter defaults. Refactor CLI. Refactor codegen errors. Refactor for performance.
- rogurotus: Add Rust opaque types, enabling arbitrary Rust structs to be used as opaque Dart objects by generating wrappers and raw Arc pointers. Also add Dart opaque types, allowing to use any Dart objects in Rust code. Extend `SyncReturn` for more types. Fix generation bug. Fix SyncReturn. Migrate to dart-sys. Update CI. Fix linters. Fix SyncReturn bug.
- ngasull: Make sync mode support whatever types that classical async mode supports. Bump sdk.
- SecondFlight: Allow structs and enums to be imported from other files within the crate by creating source graph. Auto-create relevant dir. Fix `store_dart_post_cobject` error with ffigen 6.0.
Expand Down Expand Up @@ -44,11 +44,13 @@
- Demezy: Mention troubleshooting.
- gutenfries: Bump proc-macros.
- anstadnik: Check keywords.
- patmuk: Set MSRV. Fail fast. Improve message.
- aran: Fix pubspec. Bump version.
- syndim: Add a bracket to box.
- TENX-S: Improve doc. Reproduce a bug.
- polypixeldev: Improve doc.
- CicadaCinema: Bump version. Improve doc.
- CosmicHorrorDev: Change deps.
- w1th0utnam3: Improve message.
- vincent-herlemont: Loosen version.
- zaynetro: Improve doc.
Expand All @@ -63,6 +65,7 @@
- utilForever: Fix typos.
- not-holar: Fix typos.
- Stonks3141: Fix doc credit.
- adsouza: Fix doc grammar.
- vimaxwell: Fix doc link.
- lker-dev: Fix doc link.
- jaiakash: Fix doc link.
Expand Down
27 changes: 27 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,15 @@
"code"
]
},
{
"login": "patmuk",
"name": "Patrick Mukherjee",
"avatar_url": "https://avatars.githubusercontent.com/u/2045440?v=4",
"profile": "https://patrick.mukherjee.de",
"contributions": [
"code"
]
},
{
"login": "aran",
"name": "Aran Donohue",
Expand Down Expand Up @@ -495,6 +504,15 @@
"doc"
]
},
{
"login": "CosmicHorrorDev",
"name": "CosmicHorror",
"avatar_url": "https://avatars.githubusercontent.com/u/30302768?v=4",
"profile": "https://cosmichorror.dev",
"contributions": [
"code"
]
},
{
"login": "w1th0utnam3",
"name": "Fabian Löschner",
Expand Down Expand Up @@ -621,6 +639,15 @@
"doc"
]
},
{
"login": "adsouza",
"name": "Antonio D'souza",
"avatar_url": "https://avatars.githubusercontent.com/u/275832?v=4",
"profile": "https://www.adsouza.net",
"contributions": [
"doc"
]
},
{
"login": "vimaxwell",
"name": "max",
Expand Down
36 changes: 32 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,30 @@ jobs:
- run: ./frb_internal lint-dart

# ----------------------------------- codegen -----------------------------------
# instead of running this explicit test for frb_codegen and frb_rust only, we run the test for
# all rust packages in the job "test_rust". While this would not be needed for these other packages,
# we avoid a ci dependency to cargo-msrv.
# However, the code is left commented here in case this decission changes.
# msrv:
# name: 'Test :: FRB Codegen :: MSRV'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2

# - name: Install Rust
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable

# - name: Verify MSRV for frb_codegen
# run: |
# cargo install cargo-msrv
# cargo msrv --path frb_codegen verify

# - name: Verify MSRV for frb_rust
# run: |
# cargo install cargo-msrv
# cargo msrv --path frb_rust verify

generate_run_frb_codegen_command_generate:
name: 'Generate :: FRB Codegen :: Command Generate'
Expand Down Expand Up @@ -155,7 +179,7 @@ jobs:
flutter-version: ${{ env.FRB_MAIN_FLUTTER_VERSION }}
architecture: x64
- uses: taiki-e/install-action@cargo-llvm-cov

# execute
- run: ./frb_internal generate-run-frb-codegen-command-generate --set-exit-if-changed --package ${{ matrix.package }} --coverage

Expand Down Expand Up @@ -379,7 +403,11 @@ jobs:
version: nightly
- image: ubuntu-latest
version: nightly-2023-12-16
# TODO(@fzyzcjy, @gutenfries): add MSRV here, as well as other locked versions as needed
# tests the MSRV
# run on all rust packages, though only needed for frb_rust and frb_codegen
- image: ubuntu-latest
# update this, if a later MSRV is needed
version: 1.74.0

steps:
# setup
Expand Down Expand Up @@ -407,8 +435,8 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}--${{ matrix.info.image }}--${{ matrix.info.version }}--coverage
path: target/coverage

path: target/coverage
test_dart_native:
name: 'Test :: Dart :: Native'
runs-on: ${{ matrix.image }}
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## 2.0.0-dev.8

* Please refer to https://fzyzcjy.github.io/flutter_rust_bridge/guides/miscellaneous/whats-new for what's changed in V2.
* Let codegen report error when provided configuration names are incorrect #1509 (thanks @patmuk)

## 2.0.0-dev.7

* Please refer to https://fzyzcjy.github.io/flutter_rust_bridge/guides/miscellaneous/whats-new for what's changed in V2.
* Improve error message when a file ending is not provided in configuration #1540 (thanks @patmuk)

## 2.0.0-dev.6

* Please refer to https://fzyzcjy.github.io/flutter_rust_bridge/guides/miscellaneous/whats-new for what's changed in V2.
* Remove double-allocation for enum CST decode #1500 (thanks @Desdaemon)

## 2.0.0-dev.5

* Please refer to https://fzyzcjy.github.io/flutter_rust_bridge/guides/miscellaneous/whats-new for what's changed in V2.
* Set the msrv #1463 (thanks @patmuk)
* Toggle off default `clap` feature for `cbindgen` #1503 (thanks @CosmicHorrorDev)

## 2.0.0-dev.4

* Please refer to https://fzyzcjy.github.io/flutter_rust_bridge/guides/miscellaneous/whats-new for what's changed in V2.
Expand Down
56 changes: 5 additions & 51 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exclude = [
]

[workspace.package]
version = "2.0.0-dev.4"
version = "2.0.0-dev.8"
edition = "2018"
license = "MIT"
description = "High-level memory-safe binding generator for Flutter/Dart <-> Rust"
Expand All @@ -33,9 +33,9 @@ uuid = "1.1.2"
thiserror = "1.0"
backtrace = "0.3.68"

flutter_rust_bridge_macros = { path = "frb_macros", version = "=2.0.0-dev.4" }
flutter_rust_bridge = { path = "frb_rust", default-features = false, version = "=2.0.0-dev.4" }
flutter_rust_bridge_codegen = { path = "frb_codegen", version = "=2.0.0-dev.4" }
flutter_rust_bridge_macros = { path = "frb_macros", version = "=2.0.0-dev.8" }
flutter_rust_bridge = { path = "frb_rust", default-features = false, version = "=2.0.0-dev.8" }
flutter_rust_bridge_codegen = { path = "frb_codegen", version = "=2.0.0-dev.8" }

[profile.release.package.flutter_rust_bridge_codegen]
strip = "debuginfo"
Expand Down
Loading

0 comments on commit 9d01527

Please sign in to comment.