example packages
This commit is contained in:
7
example/example_rust/Cargo.toml
Normal file
7
example/example_rust/Cargo.toml
Normal file
@@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "example_rust"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
common_msgs = { path = "../../build/common_msgs" }
|
19
example/example_rust/example_rust.rust
Normal file
19
example/example_rust/example_rust.rust
Normal file
@@ -0,0 +1,19 @@
|
||||
use common_msgs::*;
|
||||
use std::{thread, time};
|
||||
|
||||
struct Example_rust;
|
||||
|
||||
impl Example_rust {
|
||||
fn run(&self) {
|
||||
loop {
|
||||
// TODO: Implement node logic
|
||||
println!("Running example_rust");
|
||||
thread::sleep(time::Duration::from_secs(1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let node = Example_rust{};
|
||||
node.run();
|
||||
}
|
4
example/example_rust/package.bellande
Normal file
4
example/example_rust/package.bellande
Normal file
@@ -0,0 +1,4 @@
|
||||
dependencies:
|
||||
- common_msgs
|
||||
language: rust
|
||||
name: ../exampleexample_rust
|
Reference in New Issue
Block a user