Skip to content

Commit e50316f

Browse files
committed
vey-keyless: enable inotify on FreeBSD
1 parent 4cdef43 commit e50316f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

sphinx/vey-keyless/configuration/stores/local.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ Enable write watching for ``.key`` files under the store directory.
2323

2424
Newly written keys are loaded automatically after a completed write event is observed.
2525

26-
This is only supported on Linux.
26+
This is only supported on Linux and FreeBSD.
2727

2828
**default**: false

vey-keyless/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ vey-jemalloc = { workspace = true, optional = true }
4747
vey-mimalloc = { workspace = true, optional = true }
4848
vey-keyless-proto = { path = "proto" }
4949

50-
[target.'cfg(target_os = "linux")'.dependencies]
50+
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies]
5151
inotify = "0.11"
5252

5353
[build-dependencies]

vey-keyless/src/config/store/local.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl KeyStoreConfig for LocalKeyStoreConfig {
139139
Ok(())
140140
}
141141

142-
#[cfg(target_os = "linux")]
142+
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
143143
fn spawn_subscriber(&self) -> anyhow::Result<Option<oneshot::Sender<()>>> {
144144
use std::future::poll_fn;
145145

@@ -196,7 +196,7 @@ impl KeyStoreConfig for LocalKeyStoreConfig {
196196
Ok(Some(quit_sender))
197197
}
198198

199-
#[cfg(not(target_os = "linux"))]
199+
#[cfg(not(any(target_os = "linux", target_os = "freebsd")))]
200200
fn spawn_subscriber(&self) -> anyhow::Result<Option<oneshot::Sender<()>>> {
201201
Ok(None)
202202
}

0 commit comments

Comments
 (0)