Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .cargo/mutants.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
skip_calls = ["emit_to_syslog", "emit_to_event_log"]
exclude_re = ["impl Debug"]
41 changes: 41 additions & 0 deletions Cargo.lock

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

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ members = [
"devolutions-gateway",
"devolutions-session",
"jetsocat",
"testsuite",
"tools/generate-openapi",
]
default-members = [
Expand Down Expand Up @@ -36,6 +37,10 @@ strip = "symbols"
tracing-appender = { git = "https://github.com/CBenoit/tracing.git", rev = "42097daf92e683cf18da7639ddccb056721a796c" }

[workspace.lints.rust]
# Declare the custom cfgs.
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(build_profile, values("dev","release","production"))',
]}

# == Safer unsafe == #
unsafe_op_in_unsafe_fn = "warn"
Expand All @@ -55,6 +60,9 @@ noop_method_call = "warn"
unused_crate_dependencies = "warn"
unused_macro_rules = "warn"

[workspace.dependencies]
proptest = "1.0"

[workspace.lints.clippy]

# == Safer unsafe == #
Expand Down
6 changes: 2 additions & 4 deletions crates/proxy-socks/src/socks5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,8 @@ impl From<io::ErrorKind> for Socks5FailureCode {
match kind {
io::ErrorKind::ConnectionRefused => Socks5FailureCode::ConnectionRefused,
io::ErrorKind::TimedOut => Socks5FailureCode::TtlExpired,
#[cfg(feature = "nightly")] // https://github.com/rust-lang/rust/issues/86442
std::io::ErrorKind::HostUnreachable => Socks5FailureCode::HostUnreachable,
#[cfg(feature = "nightly")] // https://github.com/rust-lang/rust/issues/86442
std::io::ErrorKind::NetworkUnreachable => Socks5FailureCode::NetworkUnreachable,
io::ErrorKind::HostUnreachable => Socks5FailureCode::HostUnreachable,
io::ErrorKind::NetworkUnreachable => Socks5FailureCode::NetworkUnreachable,
_ => Socks5FailureCode::GeneralSocksServerFailure,
}
}
Expand Down
13 changes: 13 additions & 0 deletions crates/sysevent-codes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "sysevent-codes"
version = "0.0.0"
edition = "2024"
authors = ["Devolutions Inc. <infos@devolutions.net>"]
license = "MIT OR Apache-2.0"
publish = false

[lints]
workspace = true

[dependencies]
sysevent.path = "../sysevent"
Loading
Loading