Wolfgang Bumiller
57eb5a36e9
sys, shared-memory: deny unsafe_op_in_unsafe_fn explicitly
...
can be removed in these and the other crates when switching to edition
2024
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2025-03-19 12:19:43 +01:00
Maximiliano Sandoval
51c3a31115
mark blocks inside unsafe fns unsafe
...
In edition 2024 unsafe code inside unsafe functions has to be explicitly
marked as such.
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2025-03-19 12:19:19 +01:00
Shannon Sterz
dcc6eb9918
shared-memory: specify generic types for transmute
...
this annotates a `transmute` call with proper types to avoid possible
undefined behaviour, as suggested by clippy [1].
[1]:
https://rust-lang.github.io/rust-clippy/master/index.html#missing_transmute_annotations
Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
2025-03-06 15:25:24 +01:00
Wolfgang Bumiller
0652d81977
tree-wide: enable doc_cfg and doc_auto_cfg for docs
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-07-02 11:59:53 +02:00
Wolfgang Bumiller
bd0a7cb223
update proxmox-shared-memory to nix 0.24.1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-02 13:34:09 +02:00
Thomas Lamprecht
0ec1c684ae
shared memory: rustfmt
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-10 12:37:38 +02:00
Fabian Grünbichler
2fa269fb05
shared-memory: make tests integration tests
...
same as with sys/xattr, these touch files, so should use a tmpdir
provided by cargo, which requires them being integration tests.
if the tmpdir doesn't support O_TMPFILE (like overlayfs), the test is
not run (unfortunately, there is no way to indicate this via the test
result like with other test frameworks).
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-12-30 11:51:08 +01:00
Wolfgang Bumiller
fd39f876dc
shared-memory: formatting
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-07 11:52:58 +01:00
Wolfgang Bumiller
d851078eae
shared-memory: clippy fixes (docs)
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-07 11:49:23 +01:00
Fabian Grünbichler
e303ad8605
clippy: misc fixes
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-12-02 09:00:52 +01:00
Dietmar Maurer
82245339b8
use new proxmox-sys 0.2.0 for all crates
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:00:38 +01:00
Dietmar Maurer
ece92bde29
proxmox-shared-memory: depend on libc 0.2.107
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-15 11:29:53 +01:00
Dietmar Maurer
42002bb5c9
proxmox-shared-memory: avoid compiler warnings
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-15 07:29:13 +01:00
Dietmar Maurer
a1728a72c8
proxmox-shared-memory: remove debug println
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-15 07:14:49 +01:00
Dietmar Maurer
564703b195
proxmox-shared-memory: improve regression tests
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-12 18:20:44 +01:00
Dietmar Maurer
0ef72957a6
proxmox-shared-memory: implement helper to init subtypes
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-12 18:20:06 +01:00
Dietmar Maurer
c8251d4d24
proxmox-shared-memory: add magic number test
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-12 18:19:49 +01:00
Dietmar Maurer
9828acd2ef
proxmox-shared-memory: shared memory and shared mutex implementation
2021-11-12 18:19:36 +01:00