Skip to content

Commit

Permalink
conditionally import std env based on ffi feature
Browse files Browse the repository at this point in the history
  • Loading branch information
filipmacek committed Apr 21, 2024
1 parent e22261f commit 9f18131
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions nautilus_core/common/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.
// -------------------------------------------------------------------------------------------------

#[cfg(feature = "ffi")]
use std::env;

#[allow(clippy::expect_used)] // OK in build script
Expand Down
1 change: 1 addition & 0 deletions nautilus_core/core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.
// -------------------------------------------------------------------------------------------------

#[cfg(feature = "ffi")]
use std::env;

#[allow(clippy::expect_used)] // OK in build script
Expand Down
1 change: 1 addition & 0 deletions nautilus_core/model/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.
// -------------------------------------------------------------------------------------------------

#[cfg(feature = "ffi")]
use std::env;

#[allow(clippy::expect_used)] // OK in build script
Expand Down

0 comments on commit 9f18131

Please sign in to comment.