change dependency

This commit is contained in:
grabbit 2025-03-18 00:18:24 +08:00
parent 844f2552f2
commit c00f904657
2 changed files with 22 additions and 12 deletions

View File

@ -7,14 +7,15 @@ description = "A Raspberry Pi based meteor detection system"
[dependencies] [dependencies]
# Hardware interfaces # Hardware interfaces
rppal = "0.14.1" # Raspberry Pi hardware access rppal = "0.22.1" # Raspberry Pi hardware access
v4l = "0.14.0" # Video4Linux2 bindings v4l = "0.14.0" # Video4Linux2 bindings
serialport = "4.2.0" # Serial port for GPS serialport = "4.2.0" # Serial port for GPS
embedded-hal = "0.2.7" # Hardware abstraction layer embedded-hal = "0.2.7" # Hardware abstraction layer
# Video processing # Video processing
opencv = { version = "0.79.0", features = ["contrib"] } # OpenCV bindings opencv = { version = "0.94.2" } # OpenCV bindings
image = "0.24.6" # Image processing image = "0.25.5" # Image processing
clang-sys = { version = "=1.4.0", features = ["runtime", "clang_14_0"] }
# Concurrency and async # Concurrency and async
tokio = { version = "1.28.0", features = ["full"] } # Async runtime tokio = { version = "1.28.0", features = ["full"] } # Async runtime
@ -25,19 +26,19 @@ futures = "0.3.28" # Future utilities
serde = { version = "1.0.160", features = ["derive"] } # Serialization serde = { version = "1.0.160", features = ["derive"] } # Serialization
serde_json = "1.0.96" # JSON support serde_json = "1.0.96" # JSON support
chrono = { version = "0.4.24", features = ["serde"] } # Date and time chrono = { version = "0.4.24", features = ["serde"] } # Date and time
rusqlite = { version = "0.29.0", features = ["bundled"] } # SQLite rusqlite = { version = "0.34.0", features = ["bundled"] } # SQLite
# Networking and communication # Networking and communication
rumqttc = "0.20.0" # MQTT client rumqttc = "0.24.0" # MQTT client
actix-web = "4.3.1" # Web framework for REST API actix-web = "4.3.1" # Web framework for REST API
reqwest = { version = "0.11.17", features = ["json"] } # HTTP client reqwest = { version = "0.12.14", features = ["json"] } # HTTP client
gstreamer = "0.20.0" # GStreamer bindings for media streaming gstreamer = "0.23.5" # GStreamer bindings for media streaming
gstreamer-rtsp-server = "0.20.0" # RTSP server gstreamer-rtsp-server = "0.23.5" # RTSP server
# Logging and monitoring # Logging and monitoring
log = "0.4.17" # Logging facade log = "0.4.17" # Logging facade
env_logger = "0.10.0" # Logger implementation env_logger = "0.11.7" # Logger implementation
sysinfo = "0.29.0" # System information sysinfo = "0.33.1" # System information
# Utilities # Utilities
anyhow = "1.0.70" # Error handling anyhow = "1.0.70" # Error handling

View File

@ -75,8 +75,17 @@ function setup {
sudo apt update sudo apt update
sudo apt install -y git curl build-essential pkg-config \ sudo apt install -y git curl build-essential pkg-config \
libssl-dev libv4l-dev v4l-utils \ libssl-dev libv4l-dev v4l-utils \
libopencv-dev libsqlite3-dev libopencv-dev libsqlite3-dev libglib2.0-dev \
libudev-dev libgstrtspserver-1.0-dev \
gcc g++ cmake clang libclang-dev llvm-dev \
sudo apt-get install libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
gstreamer1.0-libav gstreamer1.0-tools \
gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl \
gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
# Install Rust if not already installed # Install Rust if not already installed
if ! command -v rustc &> /dev/null; then if ! command -v rustc &> /dev/null; then
echo -e "${GREEN}Installing Rust...${NC}" echo -e "${GREEN}Installing Rust...${NC}"