feat: with rust build and test
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
11
examples/rust-test/testdata/crates/example_bin/src/main.rs
vendored
Normal file
11
examples/rust-test/testdata/crates/example_bin/src/main.rs
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn test_main() {
|
||||
assert_eq!(1, 1)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user