cap-std icon indicating copy to clipboard operation
cap-std copied to clipboard

Capability-oriented version of the Rust standard library

Results 29 cap-std issues
Sort by recently updated
recently updated
newest added

I can use `system_interface::GetSetFdFlags::set_fd_flags` on a file to set `FdFlags::{DSYNC, SYNC, NONBLOCK, RSYNC}` after opening it. Can `OpenOptions` support these as well?

I have a slight question about attenuation, let me take `cap_std::fs::Dir::remove_file` as an example, It seems to rely upon (from the rust perspective) interior mutability, as in it takes an...

[`walkdir`] is a popular cross platform Rust library for efficiently walking a directory recursively. It'd be interesting to either wrap or port this crate to `cap-std` to allow recursively walking...

help wanted

`create_dir_all` uses the algorithm from `libstd` for recursively creating all components. However, `cap-primitives`' `mkdir` function performs a system call per path component per call, so calling it once per path...

good first issue

The following logic: https://github.com/bytecodealliance/cap-std/blob/72fdc307184a642eadef22864434109c01d01528/cap-primitives/src/windows/fs/get_path.rs#L18-L22 completely breaks DOS device UNC paths such as: ``` \\?\UNC\server\share\bar.exe ``` which would have to be translated to: ``` \\server\share\bar.exe ``` in addition to that, other...

PR #74 added a CI configuration for FreeBSD. However, it isn't running anymore. Is the Cirrus CI app enabled for this repository in Github Marketplace? https://cirrus-ci.org/guide/quick-start/

In https://github.com/bytecodealliance/wasmtime/pull/7662, there is discussion that a callback would be more useful than a simple set of allowed addresses. If that's true for Wasmtime, then it's true for cap-std in...

FreeBSD 13.1 introduced an `F_KINFO` fcntl command, which looks up a file descriptor's path. It's exactly what cap-primitives/rustix/fs/file_path needs. It's much more efficient than file_path_by_searching, and isn't vulnerable to the...

## test code ```rust let path = std::path::Path::new("C:\\Users\\path\\to\\folder"); //works fine let path = std::path::Path::new("\\\\?\\UNC\\Mac\\path\\to\\folder"); //throw an error let dir = std::fs::OpenOptions::new() .read(true) .custom_flags(33554432u32) .open(path).unwrap(); let entries = cap_std::fs::Dir::from_std_file(dir).entries(); dbg!(entries); ```...