dhcp4r - fix autopkgtest and relax nom dependency.
Peter Michael Green
2 years ago
|
0 |
rust-dhcp4r (0.2.3-3) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
|
|
1 |
|
|
2 |
* Team upload.
|
|
3 |
* Package dhcp4r 0.2.3 from crates.io using debcargo 2.5.0
|
|
4 |
* Relax dependency on nom to allow both versions 0.5 and 0.7 and hence
|
|
5 |
decouple enum-primitive-derive transition from nom transition.
|
|
6 |
* Bump dev-dependency on time to 0.3 and adjust examples/monitor.rs
|
|
7 |
for the new version of time so the autopkgtest can run.
|
|
8 |
|
|
9 |
-- Peter Michael Green <plugwash@debian.org> Thu, 10 Mar 2022 16:55:11 +0000
|
|
10 |
|
0 | 11 |
rust-dhcp4r (0.2.3-2) unstable; urgency=medium
|
1 | 12 |
|
2 | 13 |
* Team upload.
|
|
0 |
--- dhcp4r.orig/Cargo.toml
|
|
1 |
+++ dhcp4r/Cargo.toml
|
|
2 |
@@ -25,3 +25,3 @@
|
|
3 |
[dependencies.nom]
|
|
4 |
-version = "7.0"
|
|
5 |
+version = ">= 5.0.1, < 8.0"
|
|
6 |
|
|
0 |
relax-dep.diff
|
|
1 |
time-0.3.diff
|
|
0 |
Index: dhcp4r/Cargo.toml
|
|
1 |
===================================================================
|
|
2 |
--- dhcp4r.orig/Cargo.toml
|
|
3 |
+++ dhcp4r/Cargo.toml
|
|
4 |
@@ -28,4 +28,5 @@ version = ">= 5.0.1, < 8.0"
|
|
5 |
[dependencies.num-traits]
|
|
6 |
version = "^0.2"
|
|
7 |
[dev-dependencies.time]
|
|
8 |
-version = "0.2"
|
|
9 |
+version = "^0.3"
|
|
10 |
+features = ["local-offset","formatting"]
|
|
11 |
Index: dhcp4r/examples/monitor.rs
|
|
12 |
===================================================================
|
|
13 |
--- dhcp4r.orig/examples/monitor.rs
|
|
14 |
+++ dhcp4r/examples/monitor.rs
|
|
15 |
@@ -24,7 +24,7 @@ impl server::Handler for MyServer {
|
|
16 |
};
|
|
17 |
println!(
|
|
18 |
"{}\t{}\t{}\tOnline",
|
|
19 |
- time::OffsetDateTime::now_local().format("%Y-%m-%dT%H:%M:%S"),
|
|
20 |
+ time::OffsetDateTime::now_local().unwrap().format(&time::format_description::parse("[year]-[month]-[day]T[hour]:[minute]:[second]").unwrap()).unwrap(),
|
|
21 |
chaddr(&in_packet.chaddr),
|
|
22 |
Ipv4Addr::from(req_ip)
|
|
23 |
);
|