Compare commits

...

3 Commits

Author SHA1 Message Date
alban 4ce35dfd0d feat: add testing infrastructure 2023-06-03 18:44:17 +02:00
alban 05f43c680c fix: settings template 2023-06-03 18:44:16 +02:00
alban c02389ad4d fix: crate name 2023-06-03 18:43:11 +02:00
4 changed files with 24 additions and 2 deletions

View File

@ -1,5 +1,5 @@
[package]
name = "lazer"
name = "lj_rust"
version = "0.1.0"
edition = "2021"

View File

@ -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"

2
src/lib.rs Normal file
View File

@ -0,0 +1,2 @@
pub mod conf;
pub mod redis_ctrl;

6
tests/test_conf.rs Normal file
View File

@ -0,0 +1,6 @@
use lj_rust::conf;
#[test]
fn it_adds_two() {
assert_eq!(4, 4);
}