Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9051cda
use thiserror instead of error-chain
bruingineer Jul 27, 2025
a38b4bc
remove old error file
bruingineer Jul 29, 2025
0be7bd0
Update ipv6_tests.rs
bruingineer Jul 29, 2025
13005bc
Merge branch 'RustLight:main' into change-to-this-error-v2
bruingineer Jul 29, 2025
b03a8ae
Update main.rs
bruingineer Aug 14, 2025
e2fe4b4
Update main.rs
bruingineer Aug 14, 2025
0294cf4
update empty data test
bruingineer Sep 21, 2025
b0a7761
Receiver change read exact to read (#3)
bruingineer Oct 2, 2025
2629707
use different read for windows vs non windows os
bruingineer Sep 24, 2025
4c6ebde
remove cfg check since impl is per OS already
bruingineer Oct 2, 2025
0bb9732
Receiver change read exact to read (#4)
bruingineer Oct 3, 2025
5e964e2
Update .gitignore
bruingineer Oct 3, 2025
5897668
update linux recv to make tests pass
bruingineer Oct 3, 2025
111a4b1
Update receive.rs
bruingineer Oct 3, 2025
c648b7c
Receiver change read exact to read (#5)
bruingineer Oct 3, 2025
9d0b487
use thiserror instead of error-chain
bruingineer Jul 27, 2025
c047c4a
remove old error file
bruingineer Jul 29, 2025
8747b9d
Update ipv6_tests.rs
bruingineer Jul 29, 2025
3fffa77
Update main.rs
bruingineer Aug 14, 2025
7a14b21
Update main.rs
bruingineer Aug 14, 2025
308cf16
update empty data test
bruingineer Sep 21, 2025
0cada59
update windows recv error
bruingineer Oct 2, 2025
ae59aaa
Merge branch 'receiver-change-read_exact-to-read' into change-to-this…
bruingineer Oct 3, 2025
f4cf806
Update receive.rs
bruingineer Oct 3, 2025
0b418ed
Merge branch 'change-to-this-error-v2' of https://github.com/bruingin…
bruingineer Oct 3, 2025
4630987
Merge branch 'stable' into change-to-this-error-v2
bruingineer Oct 3, 2025
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
# These are backup files generated by rustfmt
**/*.rs.bk

.vscode
.vscode

/local/
104 changes: 21 additions & 83 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ exclude = [

[dependencies]
byteorder = { version = "1.5.0", features = [] }
error-chain = "0.12.4"
libc = { version = "0.2.171" }
socket2 = { version = "0.5.9", features = ["all"] }
thiserror = "2.0.*"
uuid = { version = "1.12", features = ["v4"] }

[dev-dependencies]
Expand All @@ -37,4 +37,4 @@ travis-ci = { repository = "Lan2u/RustSacn" }

[[examples]]
path = 'examples/sine-wave-sender.rs'
edition = '2024'
edition = '2024'
2 changes: 1 addition & 1 deletion examples/demo_rcv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ edition = "2018"

[dependencies]
sacn = { path = "../../"}
error-chain = "0.12.2"
thiserror = "2.0.*"
26 changes: 15 additions & 11 deletions examples/demo_rcv/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,23 @@

/// Use the error-chain system to allow handling IO and sACN errors chained together.
/// error_chain! macro automatically creates the Error / ErrorKind / Result required to use the Errors/external errors below with error-chain.
///
///
/// Sacn create errors are wrapped in Sacn(::sacn::error::errors::Error).
///
///
/// Std io errors are wrapped in Io(::std::io::Error).
///
///

pub mod errors {
error_chain! {
foreign_links {
Sacn(::sacn::error::errors::Error);
Io(::std::io::Error);
}

errors {}
use thiserror::Error;

#[derive(Error, Debug)]
pub enum DemoError {
#[error(transparent)]
Sacn(#[from] ::sacn::error::errors::SacnError),

#[error(transparent)]
Io(#[from] ::std::io::Error),
}
}

pub type Result<T> = std::result::Result<T, DemoError>;
}
Loading