Skip to content

Commit

Permalink
chore(jans-cedarling): fix wasm
Browse files Browse the repository at this point in the history
Signed-off-by: Oleh Bohzok <[email protected]>
  • Loading branch information
olehbozhok committed Jan 18, 2025
1 parent 58fd69f commit b2df993
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jans-cedarling/cedarling/src/bootstrap_config/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
//
// Copyright (c) 2024, Gluu, Inc.

// to avoid a lot of `cfg` macros
#![allow(unused_imports)]

use std::collections::{HashMap, HashSet};
use std::env;
use std::fmt::Display;
Expand Down
1 change: 1 addition & 0 deletions jans-cedarling/cedarling/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ impl Cedarling {
/// Create a new instance of the Cedarling application.
/// Initialize instance from enviroment variables and from config.
/// Configuration structure has lower priority.
#[cfg(not(target_arch = "wasm32"))]
pub async fn new_with_env(
raw_config: Option<BootstrapConfigRaw>,
) -> Result<Cedarling, InitCedarlingError> {
Expand Down

0 comments on commit b2df993

Please sign in to comment.