Gate insecure capabilities behind footgun feature

This commit is contained in:
Brandon Vandegrift 2025-05-08 21:05:28 -04:00
parent 29eeebd9c1
commit 7a2a8ae4cb
15 changed files with 143 additions and 77 deletions

View file

@ -319,7 +319,7 @@ Future<void> testWatchDHTValues(Stream<VeilidUpdate> updateStream) async {
// as the watch's target
final rcSet = await Veilid.instance.routingContext();
final rcWatch = await Veilid.instance.unsafeRoutingContext();
final rcWatch = await Veilid.instance.safeRoutingContext();
try {
// Make a DHT record
var rec = await rcWatch.createDHTRecord(const DHTSchema.dflt(oCnt: 10));

View file

@ -32,6 +32,7 @@ rt-tokio = [
"opentelemetry/rt-tokio",
]
debug-load = ["dep:ctor", "dep:libc-print", "dep:android_log-sys", "dep:oslog"]
footgun = ["veilid-core/footgun"]
[dependencies]
veilid-core = { path = "../../veilid-core", default-features = false }