Wolfgang Bumiller
da40267188
api-server, tools: formatting cleanup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-07-18 10:47:56 +02:00
Wolfgang Bumiller
3f8feff618
tools: actually add raw module
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-07-17 12:12:08 +02:00
Wolfgang Bumiller
404256a646
tools: add raw::Fd
...
to replace proxmox_backup's tools::Fd
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-07-02 15:47:37 +02:00
Wolfgang Bumiller
7efc037717
make valgrind opt-in, not opt-out
...
otherwise this crate cannot be compiled without nightly as
valgrind_request requires feature(asm)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-07-02 15:23:32 +02:00
Wolfgang Bumiller
3111d615b8
tools: move vec::ops::* to vec::ByteVecExt
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-07-01 11:00:29 +02:00
Wolfgang Bumiller
e290d78840
remove deprecated tools::io::ops reexport
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-07-01 10:56:27 +02:00
Wolfgang Bumiller
3310c5e05d
tools: add io::WriteExt
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-07-01 10:25:15 +02:00
Wolfgang Bumiller
9e7dfce827
tools: change tools::io::ops::*:
...
We'll stick to existing naming conventions and provide:
tools::io::{ReadExt, WriteExt}
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-07-01 09:55:08 +02:00
Wolfgang Bumiller
dbcadda6b2
tools: add doc tests for bin_to_hex, hex_to_bin
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-06-19 14:14:54 +02:00
Wolfgang Bumiller
4b2f3d3284
tools: add doc-test for bytes_as_base64
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-06-18 12:13:12 +02:00
Wolfgang Bumiller
be6d9fb6ab
tools: make date_time_as_rfc3339 work for all TimeZones
...
and add a doc-test passing `cargo test`
(and formatting fixup)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-06-18 12:11:23 +02:00
Wolfgang Bumiller
099efb2da5
formatting fixup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-06-18 11:47:26 +02:00
Dietmar Maurer
d966061f54
src/serde.rs: add serde helpers
2019-06-18 10:23:06 +02:00
Wolfgang Bumiller
a5af6eedf7
formatting fixup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-06-17 12:32:42 +02:00
Dietmar Maurer
64d9e81c76
src/lib.rs: add hex_to_bin and bin_to_hex
2019-06-17 10:59:59 +02:00
Dietmar Maurer
f2716a0d26
add hex_to_digest and digest_to_hex
2019-06-14 11:27:40 +02:00
Dietmar Maurer
d7fbee66e3
proxmox-tools/src/lib.rs: implement offsetof
2019-06-14 09:57:18 +02:00
Wolfgang Bumiller
3dd6cd3fe0
formatting fixup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-06-07 12:03:17 +02:00
Wolfgang Bumiller
2e6520a987
initial import, starting with vec & io helpers
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-06-06 14:00:25 +02:00