Small changes, updated dependencies.

This commit is contained in:
Revertron
2024-11-17 13:39:23 +01:00
parent 95188ec0bd
commit 2f7df4859d
4 changed files with 468 additions and 227 deletions
Generated
+445 -192
View File
File diff suppressed because it is too large Load Diff
+6 -17
View File
@@ -14,14 +14,12 @@ exclude = ["blockchain.db", "alfis.toml"]
getopts = "0.2.21"
log = "0.4.22"
simplelog = "0.12.2"
toml = "0.8.14"
digest = "0.10.7"
toml = "0.8.19"
sha2 = "0.10.8"
ed25519-dalek = "2.1.1"
x25519-dalek = { version = "2.0.1", features = ["reusable_secrets"] }
ecies-ed25519-ng = { git = "https://github.com/Revertron/ecies-ed25519-ng", rev = "554ca29", version = "0.5.3" }
chacha20poly1305 = "0.10.1"
signature = "2.2.0"
blakeout = "0.3.0"
num_cpus = "1.16.0"
byteorder = "1.5.0"
@@ -29,41 +27,32 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
bincode = "1.3.3"
serde_cbor = "0.11.2"
base64 = "0.22.1"
num-bigint = "0.4.6"
num-traits = "0.2.19"
chrono = { version = "0.4.38", features = ["serde"] }
time = "0.3.36"
rand = { package = "rand", version = "0.8.5" }
sqlite = "0.36.0"
uuid = { version = "1.7.0", features = ["serde", "v4"] }
uuid = { version = "1.11.0", features = ["serde", "v4"] }
mio = { version = "1.0.0", features = ["os-poll", "net"] }
ureq = { version = "2.9", optional = true, git = "https://github.com/algesten/ureq" }
ureq = { version = "2.10", optional = true }
lru = "0.12"
derive_more = "0.99.18"
derive_more = { version = "1.0.0", features = ["display", "error", "from"] }
lazy_static = "1.5.0"
spmc = "0.3.0"
thread-priority = "1.2.0"
# Optional dependencies regulated by features
web-view = { git = "https://github.com/Boscop/web-view", features = [], optional = true }
tinyfiledialogs = { version = "3.9.1", optional = true }
open = { version = "5.2.0", optional = true }
open = { version = "5.3.0", optional = true }
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.9", features = ["impl-default", "wincon", "shellscalingapi"] }
windows-service = "0.7.0"
thread-priority = "1.1.0"
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies]
thread-priority = "1.1.0"
[build-dependencies]
winres = "0.1.12"
[dev-dependencies]
serde_bytes = "0.11.7"
serde_derive = "1.0.126"
[profile.release]
opt-level = 3
lto = true
+5 -7
View File
@@ -338,7 +338,7 @@ fn setup_logger(opt_matches: &Matches, console_attached: bool) {
level = LevelFilter::Trace;
}
let mut builder = ConfigBuilder::new();
builder.add_filter_ignore_str("mio::poll")
let config = builder.add_filter_ignore_str("mio::poll")
.add_filter_ignore_str("rustls::client")
.add_filter_ignore_str("ureq::")
.set_thread_level(LevelFilter::Error)
@@ -346,12 +346,10 @@ fn setup_logger(opt_matches: &Matches, console_attached: bool) {
.set_target_level(LevelFilter::Error)
.set_level_padding(LevelPadding::Right)
.set_time_level(LevelFilter::Error)
.set_time_format_custom(format_description!("[hour]:[minute]:[second].[subsecond digits:3]"));
let config = match builder.set_time_offset_to_local() {
Ok(config) => config,
Err(config) => config
};
let config = config.build();
.set_time_format_custom(format_description!("[hour]:[minute]:[second].[subsecond digits:3]"))
.set_time_offset_to_local()
.unwrap_or_else(|config| config)
.build();
match opt_matches.opt_str("l") {
None => {
if console_attached {
+12 -11
View File
@@ -97,26 +97,27 @@ function showNewRecordDialog() {
}
function getRecordFromDialog() {
var record_name = document.getElementById("record_name").value.toLowerCase();
var record_type = document.getElementById("record_type").value;
var record_ttl = parseInt(document.getElementById("record_ttl").value);
var record_data = document.getElementById("record_data").value;
let record_priority;
const record_name = document.getElementById("record_name").value.toLowerCase();
const record_type = document.getElementById("record_type").value;
const record_ttl = parseInt(document.getElementById("record_ttl").value);
let record_data = document.getElementById("record_data").value;
if (record_type == "CNAME" || record_type == "NS") {
return { type: record_type, domain: record_name, ttl: record_ttl, host: record_data }
} else if (record_type == "MX") {
var record_priority = parseInt(document.getElementById("record_priority").value);
record_priority = parseInt(document.getElementById("record_priority").value);
return { type: record_type, domain: record_name, ttl: record_ttl, priority: record_priority, host: record_data }
} else if (record_type == "TXT") {
return { type: record_type, domain: record_name, ttl: record_ttl, data: record_data }
} else if (record_type == "SRV") {
var record_priority = parseInt(document.getElementById("record_priority").value);
var record_weight = parseInt(document.getElementById("record_weight").value);
var record_port = parseInt(document.getElementById("record_port").value);
record_priority = parseInt(document.getElementById("record_priority").value);
const record_weight = parseInt(document.getElementById("record_weight").value);
const record_port = parseInt(document.getElementById("record_port").value);
return { type: record_type, domain: record_name, ttl: record_ttl, priority: record_priority, weight: record_weight, port: record_port, host: record_data }
} else if (record_type == "TLSA") {
var certificate_usage = parseInt(document.getElementById("record_priority").value);
var selector = parseInt(document.getElementById("record_weight").value);
var matching_type = parseInt(document.getElementById("record_port").value);
const certificate_usage = parseInt(document.getElementById("record_priority").value);
const selector = parseInt(document.getElementById("record_weight").value);
const matching_type = parseInt(document.getElementById("record_port").value);
record_data = hexToBytes(record_data);
return { type: record_type, domain: record_name, ttl: record_ttl, certificate_usage: certificate_usage, selector: selector, matching_type: matching_type, data: record_data }
}