Skip to content

Commit

Permalink
fix capi build
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Feb 14, 2024
1 parent c94c085 commit 5a4e91c
Show file tree
Hide file tree
Showing 4 changed files with 1,249 additions and 2 deletions.
4 changes: 2 additions & 2 deletions biscuit-auth/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ pub use token::Biscuit;
pub use token::RootKeyProvider;
pub use token::{ThirdPartyBlock, ThirdPartyRequest};

#[cfg(cargo_c)]
#[cfg(feature = "capi")]
mod capi;

#[cfg(cargo_c)]
#[cfg(feature = "capi")]
pub use capi::*;

#[cfg(bwk)]
Expand Down
1 change: 1 addition & 0 deletions biscuit-auth/tests/macros.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(not(feature = "capi"))]
use biscuit_auth::builder;
use biscuit_quote::{
authorizer, authorizer_merge, biscuit, biscuit_merge, block, block_merge, check, fact, policy,
Expand Down
1 change: 1 addition & 0 deletions biscuit-auth/tests/rights.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![allow(unused_must_use)]
#![cfg(not(feature = "capi"))]
use biscuit::builder::*;
use biscuit::datalog::SymbolTable;
use biscuit::KeyPair;
Expand Down
Loading

0 comments on commit 5a4e91c

Please sign in to comment.