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.
Answered by
tertsdiepraam
Feb 21, 2023
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.
4 replies
Answer selected by
liblaf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?