Skip to content

Commit

Permalink
Bump version to 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chipsenkbeil committed Feb 16, 2024
1 parent 70cdb16 commit 89b9670
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
- run: cargo test ${{ matrix.flags }} --target ${{ matrix.target }}
if: matrix.target != 0
- run: cargo test ${{ matrix.flags }}
if: matrix.target == 0
examples:
name: "Run examples using Rust ${{ matrix.rust }} (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.7.1] - 2024-02-15

* Support `wasm` family for compilation

## [0.7.0] - 2023-11-04

* Support `no_std` environments, when `default-features = false` is set for the crate
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "typed-path"
description = "Provides typed variants of Path and PathBuf for Unix and Windows"
version = "0.7.0"
version = "0.7.1"
edition = "2021"
authors = ["Chip Senkbeil <[email protected]>"]
categories = ["development-tools", "filesystem", "os"]
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ mod no_std_compat {
#[macro_use]
mod common;
mod convert;
#[cfg(not(target_family = "wasm"))]
mod native;
mod typed;
mod unix;
Expand All @@ -34,6 +35,7 @@ mod private {

pub use common::*;
pub use convert::*;
#[cfg(not(target_family = "wasm"))]
pub use native::*;
pub use typed::*;
pub use unix::*;
Expand Down
3 changes: 3 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::convert::TryFrom;
use std::{env, io};

#[cfg(not(target_family = "wasm"))]
use crate::{NativePathBuf, Utf8NativePathBuf};

/// Returns the current working directory as [`NativePathBuf`].
Expand All @@ -25,6 +26,7 @@ use crate::{NativePathBuf, Utf8NativePathBuf};
/// Ok(())
/// }
/// ```
#[cfg(not(target_family = "wasm"))]
pub fn current_dir() -> io::Result<NativePathBuf> {
let std_path = env::current_dir()?;
match NativePathBuf::try_from(std_path) {
Expand Down Expand Up @@ -56,6 +58,7 @@ pub fn current_dir() -> io::Result<NativePathBuf> {
/// Ok(())
/// }
/// ```
#[cfg(not(target_family = "wasm"))]
pub fn utf8_current_dir() -> io::Result<Utf8NativePathBuf> {
match Utf8NativePathBuf::from_bytes_path_buf(current_dir()?) {
Ok(path) => Ok(path),
Expand Down

0 comments on commit 89b9670

Please sign in to comment.