-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add wasm32-wasi target #49
Comments
For my use case, I'm just using use path_abs::PathMut;
use std::path::PathBuf;
use super::Result;
pub fn path_join(a: &str, b: &str) -> Result<String> {
let mut c = PathBuf::from(a);
c.pop_up()?; // to directory
c.append(b)?;
Ok(c.as_path().to_str().unwrap().to_owned())
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_path_join() -> Result<()> {
let a = "../azure-rest-api-specs/specification/vmware/resource-manager/Microsoft.AVS/stable/2020-03-20/vmware.json";
let b = "../../../../../common-types/resource-management/v1/types.json";
let c = path_join(a, b)?;
assert_eq!(
c,
"../azure-rest-api-specs/specification/common-types/resource-management/v1/types.json"
);
Ok(())
}
} |
Agreed! I'm not actively using this library but will review and merge a PR. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be great if we could target WASI. Currently:
The text was updated successfully, but these errors were encountered: