Can I use coreutils
as a library?
#4408
-
As described in title, can I use this crate as a library? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Technically somewhat yes, but in practice no. Each of the utils is published as a crate and you can call their
So the utils are not very useful as a library, but if the above is exactly what you need, it's possible. This is how the multicall binary works under the hood.
Does that answer your question? |
Beta Was this translation helpful? Give feedback.
Technically somewhat yes, but in practice no.
Each of the utils is published as a crate and you can call their
main
function with some arguments. However, it still behaves exactly as the command line utils, meaning that:So the utils are not very useful as a library, but if the above is exactly what you need, it's possible. This is how the multicall binary works under the hood.
Does that answer your question?