Skip to content

Commit b76c006

Browse files
committed
v0.4.7 : update OS support
1 parent 7c37a03 commit b76c006

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[package]
22
authors = ["BarbossHack <barbossh4ck@protonmail.com>"]
33
categories = ["database-implementations", "concurrency", "data-structures", "caching"]
4-
description = "A key-value store based on unix shared-memory files (shm) for persisting state across program restarts."
4+
description = "A key-value store based on linux shared-memory files (shm) for persisting state across program restarts."
55
edition = "2021"
66
homepage = "https://github.com/BarbossHack/shmap"
77
keywords = ["shm", "shared-memory", "inter-process", "store", "ramfs"]
88
license = "MIT OR Apache-2.0"
99
name = "shmap"
1010
readme = "README.md"
1111
repository = "https://github.com/BarbossHack/shmap"
12-
version = "0.4.6"
12+
version = "0.4.7"
1313

1414
[dependencies]
1515
aes-gcm = { version = "0.10", features = ["std"] }

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# **Shmap**
22

3-
**A key-value store based on unix shared-memory files (shm) for persisting state across program restarts.**
3+
**A key-value store based on linux shared-memory files (shm) for persisting state across program restarts.**
44

55
## Features
66

7-
- Items are stored in the unix shared memory: it uses `shm_open` to create file in the ramdisk (/dev/shm), then they are mapped in memory with mmap.
7+
- Items are stored in the linux shared memory: it uses `shm_open` to create file in the ramdisk (/dev/shm), then they are mapped in memory with mmap.
88

99
- Concurrent access to items it provided thanks to `named-lock` mutexes.
1010

@@ -34,3 +34,13 @@ fn main() -> Result<(), ShmapError> {
3434
Ok(())
3535
}
3636
```
37+
38+
## Supported OS
39+
40+
Any POSIX linux where `/dev/shm` is mounted. MacOS and any BSD descendants are therefore not supported.
41+
42+
> [man shm_open(3)](https://man7.org/linux/man-pages/man3/shm_open.3.html)
43+
44+
```text
45+
The POSIX shared memory object implementation on Linux makes use of a dedicated tmpfs(5) filesystem that is normally mounted under /dev/shm.
46+
```

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! # **Shmap**
22
//!
3-
//! **A key-value store based on unix shared-memory files (shm) for persisting state across program restarts.**
3+
//! **A key-value store based on linux shared-memory files (shm) for persisting state across program restarts.**
44
//!
55
//! ## Features
66
//!
7-
//! - Items are stored in the unix shared memory: it uses `shm_open` to create file in the ramdisk (/dev/shm), then they are mapped in memory with mmap.
7+
//! - Items are stored in the linux shared memory: it uses `shm_open` to create file in the ramdisk (/dev/shm), then they are mapped in memory with mmap.
88
//!
99
//! - Concurrent access to items it provided thanks to `named-lock` mutexes.
1010
//!

0 commit comments

Comments
 (0)