├── .envrc ├── .github ├── FUNDING.yml ├── dependabot.yaml └── workflows │ ├── build.yml │ ├── flake-update.yml │ └── publish.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE ├── README.md ├── analysis_options.yaml ├── examples ├── dart_only │ ├── hook │ │ └── build.dart │ ├── lib │ │ ├── dart_only_example.dart │ │ └── src │ │ │ └── ffi.g.dart │ ├── pubspec.yaml │ ├── rust │ │ ├── Cargo.toml │ │ ├── bindings.h │ │ ├── build.rs │ │ ├── c │ │ │ ├── c_add.c │ │ │ └── c_add.h │ │ ├── rust-toolchain.toml │ │ └── src │ │ │ └── lib.rs │ ├── test │ │ └── dart_only_example_test.dart │ └── tool │ │ └── ffigen.dart └── flutter │ ├── hook │ └── build.dart │ ├── integration_test │ └── widget_test.dart │ ├── lib │ ├── main.dart │ └── src │ │ └── ffi.g.dart │ ├── pubspec.yaml │ ├── rust │ ├── Cargo.toml │ ├── bindings.h │ ├── build.rs │ ├── rust-toolchain.toml │ └── src │ │ └── lib.rs │ ├── test │ └── widget_test.dart │ └── tool │ └── ffigen.dart ├── flake.lock ├── flake.nix ├── native_toolchain_rust ├── CHANGELOG.md ├── LICENSE ├── README.md ├── example │ └── README.md ├── lib │ ├── native_toolchain_rust.dart │ └── src │ │ ├── build_environment.dart │ │ ├── build_runner.dart │ │ ├── config_mapping.dart │ │ ├── crate_info_validator.dart │ │ ├── crate_resolver.dart │ │ ├── dependency_discoverer.dart │ │ ├── exception.dart │ │ ├── process_runner.dart │ │ └── toml_parsing.dart ├── pubspec.yaml └── test │ ├── crate_info_validator_test.dart │ ├── crate_resolver_test.dart │ ├── dependency_discoverer_test.dart │ ├── exception_test.dart │ ├── process_runner_test.dart │ └── toml_parsing_test.dart ├── pubspec.lock ├── pubspec.yaml └── rust-toolchain.toml /.envrc: -------------------------------------------------------------------------------- 1 | use flake 2 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: GregoryConrad 2 | -------------------------------------------------------------------------------- /.github/dependabot.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/.github/dependabot.yaml -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/flake-update.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/.github/workflows/flake-update.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/README.md -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/analysis_options.yaml -------------------------------------------------------------------------------- /examples/dart_only/hook/build.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/dart_only/hook/build.dart -------------------------------------------------------------------------------- /examples/dart_only/lib/dart_only_example.dart: -------------------------------------------------------------------------------- 1 | export 'package:dart_only_example/src/ffi.g.dart' show rust_add; 2 | -------------------------------------------------------------------------------- /examples/dart_only/lib/src/ffi.g.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/dart_only/lib/src/ffi.g.dart -------------------------------------------------------------------------------- /examples/dart_only/pubspec.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/dart_only/pubspec.yaml -------------------------------------------------------------------------------- /examples/dart_only/rust/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/dart_only/rust/Cargo.toml -------------------------------------------------------------------------------- /examples/dart_only/rust/bindings.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/dart_only/rust/bindings.h -------------------------------------------------------------------------------- /examples/dart_only/rust/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/dart_only/rust/build.rs -------------------------------------------------------------------------------- /examples/dart_only/rust/c/c_add.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/dart_only/rust/c/c_add.c -------------------------------------------------------------------------------- /examples/dart_only/rust/c/c_add.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/dart_only/rust/c/c_add.h -------------------------------------------------------------------------------- /examples/dart_only/rust/rust-toolchain.toml: -------------------------------------------------------------------------------- 1 | ../../../rust-toolchain.toml -------------------------------------------------------------------------------- /examples/dart_only/rust/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/dart_only/rust/src/lib.rs -------------------------------------------------------------------------------- /examples/dart_only/test/dart_only_example_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/dart_only/test/dart_only_example_test.dart -------------------------------------------------------------------------------- /examples/dart_only/tool/ffigen.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/dart_only/tool/ffigen.dart -------------------------------------------------------------------------------- /examples/flutter/hook/build.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/flutter/hook/build.dart -------------------------------------------------------------------------------- /examples/flutter/integration_test/widget_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/flutter/integration_test/widget_test.dart -------------------------------------------------------------------------------- /examples/flutter/lib/main.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/flutter/lib/main.dart -------------------------------------------------------------------------------- /examples/flutter/lib/src/ffi.g.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/flutter/lib/src/ffi.g.dart -------------------------------------------------------------------------------- /examples/flutter/pubspec.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/flutter/pubspec.yaml -------------------------------------------------------------------------------- /examples/flutter/rust/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/flutter/rust/Cargo.toml -------------------------------------------------------------------------------- /examples/flutter/rust/bindings.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/flutter/rust/bindings.h -------------------------------------------------------------------------------- /examples/flutter/rust/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/flutter/rust/build.rs -------------------------------------------------------------------------------- /examples/flutter/rust/rust-toolchain.toml: -------------------------------------------------------------------------------- 1 | ../../../rust-toolchain.toml -------------------------------------------------------------------------------- /examples/flutter/rust/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/flutter/rust/src/lib.rs -------------------------------------------------------------------------------- /examples/flutter/test/widget_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/flutter/test/widget_test.dart -------------------------------------------------------------------------------- /examples/flutter/tool/ffigen.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/examples/flutter/tool/ffigen.dart -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/flake.nix -------------------------------------------------------------------------------- /native_toolchain_rust/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/CHANGELOG.md -------------------------------------------------------------------------------- /native_toolchain_rust/LICENSE: -------------------------------------------------------------------------------- 1 | ../LICENSE -------------------------------------------------------------------------------- /native_toolchain_rust/README.md: -------------------------------------------------------------------------------- 1 | ../README.md -------------------------------------------------------------------------------- /native_toolchain_rust/example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/example/README.md -------------------------------------------------------------------------------- /native_toolchain_rust/lib/native_toolchain_rust.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/lib/native_toolchain_rust.dart -------------------------------------------------------------------------------- /native_toolchain_rust/lib/src/build_environment.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/lib/src/build_environment.dart -------------------------------------------------------------------------------- /native_toolchain_rust/lib/src/build_runner.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/lib/src/build_runner.dart -------------------------------------------------------------------------------- /native_toolchain_rust/lib/src/config_mapping.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/lib/src/config_mapping.dart -------------------------------------------------------------------------------- /native_toolchain_rust/lib/src/crate_info_validator.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/lib/src/crate_info_validator.dart -------------------------------------------------------------------------------- /native_toolchain_rust/lib/src/crate_resolver.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/lib/src/crate_resolver.dart -------------------------------------------------------------------------------- /native_toolchain_rust/lib/src/dependency_discoverer.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/lib/src/dependency_discoverer.dart -------------------------------------------------------------------------------- /native_toolchain_rust/lib/src/exception.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/lib/src/exception.dart -------------------------------------------------------------------------------- /native_toolchain_rust/lib/src/process_runner.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/lib/src/process_runner.dart -------------------------------------------------------------------------------- /native_toolchain_rust/lib/src/toml_parsing.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/lib/src/toml_parsing.dart -------------------------------------------------------------------------------- /native_toolchain_rust/pubspec.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/pubspec.yaml -------------------------------------------------------------------------------- /native_toolchain_rust/test/crate_info_validator_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/test/crate_info_validator_test.dart -------------------------------------------------------------------------------- /native_toolchain_rust/test/crate_resolver_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/test/crate_resolver_test.dart -------------------------------------------------------------------------------- /native_toolchain_rust/test/dependency_discoverer_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/test/dependency_discoverer_test.dart -------------------------------------------------------------------------------- /native_toolchain_rust/test/exception_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/test/exception_test.dart -------------------------------------------------------------------------------- /native_toolchain_rust/test/process_runner_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/test/process_runner_test.dart -------------------------------------------------------------------------------- /native_toolchain_rust/test/toml_parsing_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/native_toolchain_rust/test/toml_parsing_test.dart -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/pubspec.lock -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/pubspec.yaml -------------------------------------------------------------------------------- /rust-toolchain.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GregoryConrad/native_toolchain_rust/HEAD/rust-toolchain.toml --------------------------------------------------------------------------------