Crates.io | capsicum-net |
lib.rs | capsicum-net |
version | 0.1.0 |
source | src |
created_at | 2024-06-05 00:00:55.137407 |
updated_at | 2024-06-05 00:00:55.137407 |
description | Rust bindings to FreeBSD's cap_net library |
homepage | |
repository | https://github.com/asomers/capsicum-net |
max_upload_size | |
id | 1262220 |
size | 73,283 |
Rust bindings to FreeBSD's cap_net(3) library. cap_net
allows access to
several network APIs that are forbidden in capability mode by delegating them to
an unsandboxed process, the Casper daemon.
](https://cirrus-ci.com/github/asomers/capsicum-net)
See the examples in the API docs. The general idea is to create the Casper
and CapNetAgent
objects when your program first starts up. Then, use
functions like CapNetAgent::bind
instead of std::net::UdpSocket::bind
.
There are three APIs available:
CapNetAgent
object. These
work well with the nix crate.tokio
feature.This crate only works on FreeBSD 13 and later. At least, until somebody ports
cap_net
to a different operating system.
capsicum-net
does not guarantee any specific MSRV. Rather, it guarantees
compatibility with the oldest rustc shipped in the FreeBSD package collection.
capsicum-net
is primarily distributed under the terms of both the MIT license
and the Apache License (Version 2.0).
See LICENSE-APACHE, and LICENSE-MIT for details.
capsicum-net
is sponsored by Axcient, inc.