Comments (7)
Can't speak too much to the other points, but I'm happy to aid in maintaining libcasper
support in capsicum. I am curious about the benefits of adding libcasper
support to capsicum vs creating a libcasper
crate that depends on capsicum-rs
.
from sysctl-rs.
Well, nobody will ever use libcasper without using capsicum. There are, however, plenty of use cases for capsicum that don't require libcasper. But shorn of its services, libcasper is pretty small. IMHO it doesn't require a standalone crate. What about adding it to capsicum-rs, but gated by a feature flag?
from sysctl-rs.
Thanks! That makes sense.
from sysctl-rs.
Thanks for the suggestion! I like it and it seems you thought about all the questions I would have. Not a fan of the global variable for the casper connection but if it's between that and breaking the API I prefer not breaking the API.
Having it behind an target_os
gate and not feature flag seems OK to me (but not for all unix
since I don't think macOS/iOS has this right?).
from sysctl-rs.
Correct. Capsicum is FreeBSD only. There was a Linux port, but I don't think it's complete or currently maintained.
from sysctl-rs.
Status update: I've gotten Casper working on a different real-world project (but not cap_sysctl). But I actually no longer have a personal need for cap_sysctl, so I'm going to deprioritize that part. Currently I'm blocked by a few PRs at https://github.com/Inner-Heaven/libnv-rs/ before we can integrate this into the capsicum-rs crate.
from sysctl-rs.
👍 Thanks for working on this and adding an update
from sysctl-rs.
Related Issues (18)
- Struct interface HOT 1
- Short reads HOT 1
- docstest failure on FreeBSD
- missing docs and docstests on macos HOT 1
- doc fails on set_value HOT 1
- Extracting CtlInfo / fmt HOT 1
- newest libc broke the crate ... HOT 4
- New design HOT 4
- Question about list of longs HOT 3
- Wrong type on macOS HOT 2
- `value_oid_as` is unsound HOT 1
- CI isn't turned on
- Cirrus doesn't support OSX Mojave and High Sierra HOT 1
- Remnant debugging println on FreeBSD? HOT 3
- bitflags crate is using deprecated try macro HOT 1
- Thoughts on sysctls that take arguments? HOT 3
- fails to build on openbsd HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sysctl-rs.