Skip to content
Snippets Groups Projects
Verified Commit 5d5e2743 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: docs.rs support by creating gen-mock feture

Which allows usage of the static version of the generated values.
parent c087d174
No related branches found
No related tags found
No related merge requests found
Pipeline #2218 passed
......@@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
*
* Build process for the docs.rs website
## [0.6.11] - 2023-02-21
......
......@@ -17,6 +17,7 @@ crate-type = ["cdylib", "rlib"]
[features]
wasm = ["wasm-bindgen"]
debug = []
gen-mock = []
[dependencies]
wasm-bindgen = { version = "0.2", optional = true }
......@@ -35,3 +36,6 @@ members = [
".",
"frontends/sdl",
]
[package.metadata.docs.rs]
features = ["wasm", "gen-mock"]
//! Constants that define the current build and execution environment.
#[cfg(feature = "readonly")]
#[cfg(feature = "gen-mock")]
pub mod mock;
#[cfg(feature = "readonly")]
#[cfg(feature = "gen-mock")]
pub use self::mock::*;
#[rustfmt::skip]
#[cfg(not(feature = "readonly"))]
#[cfg(not(feature = "gen-mock"))]
pub mod build;
#[cfg(not(feature = "readonly"))]
#[cfg(not(feature = "gen-mock"))]
pub use self::build::*;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment