chore(m0): initialize cargo workspace, crate skeletons and ci gate
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
[package]
|
||||
name = "ffi"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
authors.workspace = true
|
||||
description = "CDylib bridge between Flutter and the deterministic simulation"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib", "staticlib"]
|
||||
|
||||
[dependencies]
|
||||
sim.workspace = true
|
||||
content.workspace = true
|
||||
@@ -0,0 +1,16 @@
|
||||
//! Flutter <-> Rust bridge (flutter_rust_bridge API lives here from M3 on).
|
||||
|
||||
/// Smoke entry point so the Android build proves the CDylib pipeline works.
|
||||
pub fn sim_version() -> String {
|
||||
sim::SIM_VERSION.to_string()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn exposes_sim_version() {
|
||||
assert_eq!(sim_version(), "0.1.0");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user