Panduza / panduza-rust-platform

Panduza Rust Platform Service
Apache License 2.0
2 stars 1 forks source link

panduza-rust-platform

Usage

You must install Rust and Cargo then execute this commands

# Enable fmt tracing (std terminal logs)
cargo run --features trac-fmt

# Enable fmt tracing + broker logs 
cargo run --features trac-fmt, broker-log

# Enable tokio console tracing
RUSTFLAGS="--cfg tokio_unstable" cargo run --features trac-console

Manage log levels

To set the log level at build time, please go to the Cargo.tml

Then edit the 'tacing' entry to set the level you want

tracing = { version = "0.1", features = [
    # "max_level_off",
    # "max_level_error",
    # "max_level_warn",
    "max_level_info",
    # "max_level_debug",
    # "max_level_trace",
    # "release_max_level_off",
    # "release_max_level_error",
    # "release_max_level_warn",
    "release_max_level_info",
    # "release_max_level_debug",
    # "release_max_level_trace"
]}

Linux video install :

sudo apt-get install libv4l-dev sudo apt-get install libclang-dev