Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
348 changes: 335 additions & 13 deletions Cargo.lock

Large diffs are not rendered by default.

21 changes: 19 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
resolver = '2'
members = [
"crates/procdockerstatsd-rs",
"crates/userd-rs",
]
exclude = []

Expand All @@ -23,7 +24,7 @@ unused_import_braces = 'warn'
[workspace.dependencies]
# System info and SONiC database
sysinfo = "0.35.0"
swss-common = { git = "https://github.com/sonic-net/sonic-swss-common", branch = "master" }
swss-common = { git = "https://github.com/sonic-net/sonic-swss-common", branch = "master", features = ["async"] }

# Regex and pattern matching
regex = "1.10"
Expand All @@ -50,4 +51,20 @@ syslog-tracing = "0.3"

# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_json = "1.0"

# Error handling
thiserror = "1.0"

# Unix/POSIX system calls
nix = { version = "0.29", features = ["user", "fs"] }

# Async runtime and signal handling
tokio = { version = "1", features = ["rt-multi-thread", "signal", "macros", "time"] }

# Testing
mockall = "0.13"
tempfile = "3.10"

# Static initialization
lazy_static = "1.4"
33 changes: 33 additions & 0 deletions crates/userd-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
name = "userd_rs"
version.workspace = true
edition.workspace = true
description = "SONiC User Management Daemon in Rust"
license.workspace = true
authors.workspace = true

[dependencies]
swss-common.workspace = true
serde.workspace = true
serde_json.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
syslog-tracing.workspace = true
libc.workspace = true
thiserror.workspace = true
nix.workspace = true
tokio.workspace = true
tempfile.workspace = true
lazy_static.workspace = true

[dev-dependencies]
mockall.workspace = true

[[bin]]
name = "userd"
path = "src/main.rs"

[lib]
name = "userd_rs"
path = "src/lib.rs"

Loading
Loading