pledge
Version, currently 0.1.01 version
- 0.1.0latestAug 21, 2018
github.com/chris-huxtable/pledge.cr
Adds pledge(2) to crystal.
10 stars
1 dependent
License: ISC
Installation
# Add this to your shard.yml
dependencies:
pledge:
github: chris-huxtable/pledge.cr
version: ~> 0.1.0Then run:
shards installshard.yml
- Crystal
0.23.1- License
- ISC
- Author
- Chris Huxtable
Dependencies
This version declares no dependencies.
README
pledge.cr
Adds pledge(2) to crystal.
Installation
Add this to your application's shard.yml:
dependencies:
pledge:
github: chris-huxtable/pledge.cr
Usage
require "pledge"
Partial syscall restrictions:
Process.pledge(:stdio, :rpath, :wpath, :flock)
Process.pledge("stdio", "rpath")
Full restrictions:
Process.pledge()
More information and a list of 'promises' is available in the OpenBSD man pages.
Contributing
- Fork it ( https://github.com/chris-huxtable/pledge.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- Chris Huxtable - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Aug 21, 2018
- Commit
b40e1d12e726- Crystal
0.23.1- Indexed
- yes
Dependents
Repository
github.com/chris-huxtable/pledge.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1