Skip to content

Commit

Permalink
chore(wasix): Stop feature-gating the map_command methods on WasiEnvB…
Browse files Browse the repository at this point in the history
…uilder

Feature-gating adds complexity to other parts of the code.
We can just ignore mappings on other architectures for now.
  • Loading branch information
theduke committed Nov 8, 2023
1 parent bd34c53 commit 11f7403
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/wasix/src/state/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ impl WasiEnvBuilder {
}

/// Map an atom to a local binary
#[cfg(feature = "sys")]
pub fn map_command<Name, Target>(mut self, name: Name, target: Target) -> Self
where
Name: AsRef<str>,
Expand All @@ -316,7 +315,6 @@ impl WasiEnvBuilder {
}

/// Map an atom to a local binary
#[cfg(feature = "sys")]
pub fn add_mapped_command<Name, Target>(&mut self, name: Name, target: Target)
where
Name: AsRef<str>,
Expand All @@ -328,7 +326,6 @@ impl WasiEnvBuilder {
}

/// Maps a series of atoms to the local binaries
#[cfg(feature = "sys")]
pub fn map_commands<I, Name, Target>(mut self, map_commands: I) -> Self
where
I: IntoIterator<Item = (Name, Target)>,
Expand All @@ -340,7 +337,6 @@ impl WasiEnvBuilder {
}

/// Maps a series of atoms to local binaries.
#[cfg(feature = "sys")]
pub fn add_mapped_commands<I, Name, Target>(&mut self, map_commands: I)
where
I: IntoIterator<Item = (Name, Target)>,
Expand Down

0 comments on commit 11f7403

Please sign in to comment.