Crate farmfe_utils
source ·Expand description
This crate provides shared utilities that is not related to any core compilation flow or data structures. If you are a plugin author and look for internal helpers, [farmfe_toolkit] crate should be your first choice.
Modules§
Constants§
Functions§
- Construct a relative path from a provided base directory path to the provided path.
- parse
?a=b
toHashMap { a: b }
,?a
toHashMap { a: "" }
- get platform independent relative path for example: from = “/desktop/farm/projects”, to = “/desktop/farm/documents/report.txt” the result will be “../documents/report.txt”
- stringify
Vec<(a, b)>
to?a=b
. for example:vec![("a", "b")]
to?a=b
vec![("a", "")]
to?a