-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pluggable storage backends * Run cargo fmt * Impl debug for FileBackend * Fix typo * Implement debug for log feature * Fix OSX compilation issues * Run cargo fmt again * Fix clippy issues * Run cargo fmt * Remove unused variable warning * Remove useless conversion * Fix fuzzing link issue on Mac * Update build.rs * Remove platform-dependent APIs and add unsupported backend * Remove is_empty and run cargo fmt * Update member names * Run cargo fmt * Fix return type and remove unused code
- Loading branch information
1 parent
267b473
commit c8d98b7
Showing
16 changed files
with
372 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
fn main() { | ||
if std::env::var("CARGO_CFG_FUZZING").is_ok() | ||
&& std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") | ||
{ | ||
println!("cargo:rustc-cdylib-link-arg=-undefined"); | ||
println!("cargo:rustc-cdylib-link-arg=dynamic_lookup"); | ||
} | ||
|
||
#[cfg(feature = "python")] | ||
pyo3_build_config::add_extension_module_link_args(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#[cfg(any(unix, target_os = "wasi"))] | ||
mod unix; | ||
#[cfg(any(unix, target_os = "wasi"))] | ||
pub use unix::FileBackend; | ||
|
||
#[cfg(windows)] | ||
mod windows; | ||
#[cfg(windows)] | ||
pub use windows::FileBackend; | ||
|
||
#[cfg(not(any(windows, unix, target_os = "wasi")))] | ||
mod unsupported; | ||
#[cfg(not(any(windows, unix, target_os = "wasi")))] | ||
pub use unsupported::FileBackend; |
Oops, something went wrong.