From c02389ad4d5b79d6f9dc1688469da9b0d1f6fc62 Mon Sep 17 00:00:00 2001 From: alban Date: Sat, 3 Jun 2023 18:42:17 +0200 Subject: [PATCH 1/3] fix: crate name --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 05f43c680cab7553460a4185d30461a2914495b7 Mon Sep 17 00:00:00 2001 From: alban Date: Sat, 3 Jun 2023 18:42:44 +0200 Subject: [PATCH 2/3] fix: settings template --- copyme.Settings.toml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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" From 4ce35dfd0d36ca8fb190fe5f8d96e6096b32be37 Mon Sep 17 00:00:00 2001 From: alban Date: Sat, 3 Jun 2023 18:43:04 +0200 Subject: [PATCH 3/3] feat: add testing infrastructure --- src/lib.rs | 2 ++ tests/test_conf.rs | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 src/lib.rs create mode 100644 tests/test_conf.rs 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