diff --git a/Cargo.toml b/Cargo.toml index 1b4a46d..a9ba871 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "lazer" +name = "lj_rust" version = "0.1.0" edition = "2021" diff --git a/copyme.Settings.toml b/copyme.Settings.toml index 5296d56..21944b6 100644 --- a/copyme.Settings.toml +++ b/copyme.Settings.toml @@ -1,6 +1,20 @@ +# file: Settings.toml +# Rename me ! + +# The main key of your laser in LJ laser_id = 0 + +# Activate for more debug debug = "true" + +# Redis URL as IP:port redis_url = "127.0.0.1" + +# Either Helios or Etherdream dac_family = "Helios" -dac_id = 1 + +# For Helios. USB Device Id of the DAC +dac_id = 0 + +# For Etherdream. IP of the DAC dac_url = "192.168.1.68" diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..167b21e --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,2 @@ +pub mod conf; +pub mod redis_ctrl; \ No newline at end of file diff --git a/tests/test_conf.rs b/tests/test_conf.rs new file mode 100644 index 0000000..1305e13 --- /dev/null +++ b/tests/test_conf.rs @@ -0,0 +1,6 @@ +use lj_rust::conf; + +#[test] +fn it_adds_two() { + assert_eq!(4, 4); +} \ No newline at end of file