Skip to content

Fix docs.rs builds #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nrfxlib-sys"
version = "2.9.1"
version = "2.9.2"
authors = [
"Jonathan 'theJPster' Pallant <[email protected]>",
"42 Technology Ltd <[email protected]>",
Expand Down Expand Up @@ -36,6 +36,9 @@ include = [
"third_party/nordic/nrfxlib/crypto/nrf_oberon/license.txt",
]

[package.metadata.docs.rs]
features = ["nrf9160"]

[dependencies]

[build-dependencies]
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ without any additional terms or conditions.

## Changelog

### Unreleased Changes ([Source](https://github.com/nrf-rs/nrfxlib-sys/tree/develop) | [Changes](https://github.com/nrf-rs/nrfxlib-sys/compare/v2.9.1...develop))
### Unreleased Changes ([Source](https://github.com/nrf-rs/nrfxlib-sys/tree/develop) | [Changes](https://github.com/nrf-rs/nrfxlib-sys/compare/v2.9.2...develop))

### v2.9.2 ([Source](https://github.com/nrf-rs/nrfxlib-sys/tree/v2.9.2) | [Changes](https://github.com/nrf-rs/nrfxlib-sys/compare/v2.9.1...v2.9.2))

* Disabled bindgen layout tests so this crate can be built for desktops
* Selected a chip feature so docs can be build again

### v2.9.1 ([Source](https://github.com/nrf-rs/nrfxlib-sys/tree/v2.9.1) | [Changes](https://github.com/nrf-rs/nrfxlib-sys/compare/v2.7.1...v2.9.1))

Expand Down
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ fn main() {
.allowlist_var("OCRYPTO_.*")
// Format the output
.formatter(bindgen::Formatter::Rustfmt)
// Disable so it can build on desktop too
.layout_tests(false)
// Finish the builder and generate the bindings.
.generate()
// Unwrap the Result and panic on failure.
Expand Down