Skip to content

Commit

Permalink
added flake and updated flutter_rust_bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
MnlPhlp committed Mar 8, 2024
1 parent a02e66f commit f2247e5
Show file tree
Hide file tree
Showing 16 changed files with 124 additions and 36 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
/Cargo.lock
/Cargo.lock
.direnv
2 changes: 1 addition & 1 deletion example/bin/api.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.23.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.

// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

Expand Down
4 changes: 2 additions & 2 deletions example/bin/frb_generated.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.23.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.

// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field

Expand Down Expand Up @@ -51,7 +51,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
kDefaultExternalLibraryLoaderConfig;

@override
String get codegenVersion => '2.0.0-dev.23';
String get codegenVersion => '2.0.0-dev.27';

static const kDefaultExternalLibraryLoaderConfig =
ExternalLibraryLoaderConfig(
Expand Down
2 changes: 1 addition & 1 deletion example/bin/frb_generated.io.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.23.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.

// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field

Expand Down
2 changes: 1 addition & 1 deletion example/bin/frb_generated.web.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.23.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.

// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field

Expand Down
10 changes: 5 additions & 5 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ packages:
dependency: transitive
description:
name: dart_internal
sha256: "689dccc3d5f62affd339534cca548dce12b3a6b32f0f10861569d3025efc0567"
sha256: "04145b91ccec450325fee75692b1ab62eb615e8892c334f0f4d31c696a857873"
url: "https://pub.dev"
source: hosted
version: "0.2.9"
version: "0.2.10"
ffi:
dependency: "direct main"
description:
Expand Down Expand Up @@ -125,10 +125,10 @@ packages:
dependency: "direct main"
description:
name: flutter_rust_bridge
sha256: d0d366db59eead201fac6fd7e9ce1f6a291edb04dd3c2d8dd07e140b8e1a39b2
sha256: "72ed9e781fb2a34ae209d18dcee38712269027f8292c8db93883d7d8f7ebff20"
url: "https://pub.dev"
source: hosted
version: "2.0.0-dev.23"
version: "2.0.0-dev.27"
frontend_server_client:
dependency: transitive
description:
Expand Down Expand Up @@ -434,4 +434,4 @@ packages:
source: hosted
version: "2.1.1"
sdks:
dart: ">=3.0.5 <3.3.0"
dart: ">=3.0.5 <3.4.0"
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
# Add regular dependencies here.
dependencies:
ffi: ^2.0.2
flutter_rust_bridge: 2.0.0-dev.23
flutter_rust_bridge: 2.0.0-dev.27

dev_dependencies:
lints: ^2.0.0
Expand Down
2 changes: 1 addition & 1 deletion example/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

cargo install 'flutter_rust_bridge_codegen@^2.0.0-dev.23'
cargo install 'flutter_rust_bridge_codegen@^2.0.0-dev.27'
flutter_rust_bridge_codegen generate
cd rust_lib && cargo build --release && cd ..
dart run
36 changes: 18 additions & 18 deletions example/rust_lib/Cargo.lock

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

2 changes: 1 addition & 1 deletion example/rust_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ crate-type = ["cdylib", "staticlib"]

[dependencies]
flutter_logger = { path = "../../", features=["panic"]}
flutter_rust_bridge = "=2.0.0-dev.23"
flutter_rust_bridge = "=2.0.0-dev.27"
log = "0.4.19"
2 changes: 1 addition & 1 deletion example/rust_lib/src/frb_generated.io.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.23.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.

// Section: imports

Expand Down
4 changes: 2 additions & 2 deletions example/rust_lib/src/frb_generated.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.23.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.

#![allow(
non_camel_case_types,
Expand Down Expand Up @@ -30,7 +30,7 @@ flutter_rust_bridge::frb_generated_boilerplate!(
default_rust_opaque = RustOpaqueMoi,
default_rust_auto_opaque = RustAutoOpaqueMoi,
);
const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.23";
const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.27";

// Section: executor

Expand Down
2 changes: 1 addition & 1 deletion example/rust_lib/src/frb_generated.web.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.23.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.

// Section: imports

Expand Down
61 changes: 61 additions & 0 deletions flake.lock

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

25 changes: 25 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
description = "Flutter 3.13.x";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
in
{
devShell =
with pkgs; mkShell rec {
buildInputs = [
flutter
];
};
});
}

0 comments on commit f2247e5

Please sign in to comment.