Alan Somers

Results 656 comments of Alan Somers

As you've figured out by now, Mockall needs to generate a lot of code for every mocked function. Just because stable Rust allows something in an `extern C` declaration, that...

No, I'm afraid. I don't want to add any new syntax until https://github.com/asomers/mockall/discussions/539 is complete.

Good catch. I don't usually use pedantic, but this warning should be easy to suppress.

Personally I'm against it. Attempting to provide compatibility shims in libc would obscure the crate's true purpose. We've tried the same thing in the Nix crate a few times, and...

> Can we perhaps add FreeBSD support via https://github.com/vmactions/freebsd-vm (until GH Actions has native FreeBSD support)? It's easier to use Cirrus CI, IMHO, because it supports FreeBSD natively.

Yes. Just use the cfg-aliases crate. See https://github.com/nix-rust/nix/blob/master/build.rs for a usage example.

Adding a new method would work for me, as long as it doesn't need an AmbientAuthority. My application runs with Capsicum, so I can't get an AmbientAuthority except during startup.

@cgwalters unfortunately cap_primitives::fs::read_link_contents won't work here, because that requires a `&std::fs::File` argument. But all of the functions in cap_std want a `cap_std::fs::Dir`. And there's no method to get the former...

RESOLVE_IN_ROOT isn't really relevant for what I'm doing. I just need a read_link method that returns that literal value of the symlink and nothing else, like read_link_contents does. And for...

> Recently I came across two FUSE filesystems that implement `FUSE_IOCTL`. > > One of them is bindfs. When launched with the `-o enable-ioctl` option, it enables ioctl forwarding. >...