diff --git a/.dockerignore b/.dockerignore index da6f5bad07..d6a3f04642 100644 --- a/.dockerignore +++ b/.dockerignore @@ -9,8 +9,8 @@ !/frb_macros/src !/frb_example/pure_dart/rust/Cargo.toml !/frb_example/pure_dart/rust/src -!/frb_example/pure_dart/rust/external/Cargo.toml -!/frb_example/pure_dart/rust/external/src +!/frb_example/pure_dart/rust/example_external_lib/Cargo.toml +!/frb_example/pure_dart/rust/example_external_lib/src !/frb_example/pure_dart_multi/rust/Cargo.toml !/frb_example/pure_dart_multi/rust/src !/frb_example/with_flutter/rust/Cargo.toml diff --git a/Cargo.lock b/Cargo.lock index 0550a308d1..ae4283c7dd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -558,10 +558,15 @@ dependencies = [ "backtrace", "chrono", "flutter_rust_bridge", + "frb_example_pure_dart_exapmle_external_lib", "log", "uuid", ] +[[package]] +name = "frb_example_pure_dart_exapmle_external_lib" +version = "0.1.0" + [[package]] name = "futures" version = "0.3.29" diff --git a/frb_example/old/pure_dart/rust/external/Cargo.toml b/frb_example/old/pure_dart/rust/external/Cargo.toml deleted file mode 100644 index cdf73f45ea..0000000000 --- a/frb_example/old/pure_dart/rust/external/Cargo.toml +++ /dev/null @@ -1,5 +0,0 @@ -[package] -name = "flutter_rust_bridge_example_external" -version = "0.1.0" - -[dependencies] diff --git a/frb_example/pure_dart/rust/Cargo.toml b/frb_example/pure_dart/rust/Cargo.toml index 52f242a21c..4d517c3364 100644 --- a/frb_example/pure_dart/rust/Cargo.toml +++ b/frb_example/pure_dart/rust/Cargo.toml @@ -13,3 +13,4 @@ log = "0.4.19" backtrace = "0.3.68" chrono = "0.4.26" uuid = "1.4.1" +external-lib = {path = "./example_external_lib", package="frb_example_pure_dart_exapmle_external_lib"} \ No newline at end of file diff --git a/frb_example/pure_dart/rust/example_external_lib/Cargo.toml b/frb_example/pure_dart/rust/example_external_lib/Cargo.toml new file mode 100644 index 0000000000..86491e5d3a --- /dev/null +++ b/frb_example/pure_dart/rust/example_external_lib/Cargo.toml @@ -0,0 +1,5 @@ +[package] +name = "frb_example_pure_dart_exapmle_external_lib" +version = "0.1.0" + +[dependencies] diff --git a/frb_example/old/pure_dart/rust/external/src/lib.rs b/frb_example/pure_dart/rust/example_external_lib/src/lib.rs similarity index 100% rename from frb_example/old/pure_dart/rust/external/src/lib.rs rename to frb_example/pure_dart/rust/example_external_lib/src/lib.rs