Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
fix: docs.rs build
Browse files Browse the repository at this point in the history
  • Loading branch information
Conni2461 committed Jun 28, 2022
1 parent f88bc2f commit f256e4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libnixstore/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libnixstore"
version = "0.1.0"
version = "0.1.1"
authors = ["Simon Hauser <[email protected]>"]
description = "Rust friendly bindings to nixos nix-store library"
edition = "2021"
Expand Down
4 changes: 4 additions & 0 deletions libnixstore/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
fn main() {
if std::env::var("DOCS_RS").is_ok() {
return;
}

cxx_build::bridge("src/lib.rs")
.file("src/nix.cpp")
.flag_if_supported("-std=c++17")
Expand Down

0 comments on commit f256e4d

Please sign in to comment.