Igor Żuk

Results 110 comments of Igor Żuk

Current research direction: Cargo plugin, which copies all dependencies, injects them automatically with mocking code and compile the original project with these modified crates.

Nice to see Mocktopus being used! For now it seems that you've explored all it has to offer for you. Automatic making dependencies mockable is around pre-alpha state, but blocked...

It should be possible. If the dependency is built with mocking enabled for the function, it will be available in the depdendee. You probably should add a special feature gate...

https://github.com/rust-lang/rust/issues/41430 is said to be solved, not fully or very elegant yet, but enough for Mocktopus. Unfortunately https://github.com/rust-lang/rust/issues/47075 makes it unusable.

https://github.com/rust-lang/rust/issues/47075 is solved, but some sub-issues of https://github.com/rust-lang/rust/issues/41430 still block it, Syn panics during parsing.

This solution won't work because of https://github.com/CodeSandwich/Mocktopus/issues/29. The only thing that could save this functionality would be some `build.rs` or Cargo tool.

Yes, unsafe funcions don't implement `Fn`. One solution could be to switch whole API to using `fn`, but it lacks some first class citizenshipness. For example you can't implement a...

That's an interesting feature to add in the future. For now what about existing mocking tools? Do they miss anything?

That's very interesting, great job with bring it all together and thank you for including Mocktopus! To be honest I was trying to create a tool for mocking traits too...

Oh, that's right, the project does have one top-level `using ... for ... global;`: https://github.com/radicle-dev/drips-contracts/blob/master/src/Drips.sol#L24. Should I open an issue in `crytic-compile`? IIUC `crytic-compile` is not a compiler, but a...