Skip to content

Commit d4c91f6

Browse files
committed
fix build
1 parent d826c4f commit d4c91f6

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

src/app.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
use crate::data::Data;
22
#[cfg(feature = "kalc-lib")]
33
use crate::data::init;
4-
use crate::{App, C, F, I, get_names};
4+
use crate::{App, get_names};
5+
#[cfg(feature = "kalc-lib")]
6+
use crate::{C, F, I};
57
use rupl::types::Graph;
68
impl App {
79
#[cfg(feature = "kalc-lib")]

src/data.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#[cfg(not(feature = "rayon"))]
22
use crate::IntoIter;
3-
use crate::{C, F, I, get_names};
3+
use crate::get_names;
4+
#[cfg(feature = "kalc-lib")]
5+
use crate::{C, F, I};
46
#[cfg(feature = "kalc-lib")]
57
use kalc_lib::complex::NumStr;
68
#[cfg(feature = "kalc-lib")]
@@ -15,6 +17,7 @@ use kalc_lib::misc::{place_funcvar, place_var};
1517
use kalc_lib::options::silent_commands;
1618
#[cfg(feature = "kalc-lib")]
1719
use kalc_lib::parse::simplify;
20+
#[cfg(feature = "kalc-lib")]
1821
use kalc_lib::types::{Complex as Comp, Float, FloatShared};
1922
#[cfg(feature = "kalc-lib")]
2023
use kalc_lib::units::{Colors, HowGraphing, Number, Options, Variable};

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,17 @@ extern crate wee_alloc;
2525
#[cfg(feature = "wee")]
2626
#[global_allocator]
2727
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
28+
//#[cfg(feature = "kalc-lib")]
2829
//pub type I = kalc_lib::rug::Integer;
30+
//#[cfg(feature = "kalc-lib")]
2931
//pub type F = kalc_lib::rug::Float;
32+
//#[cfg(feature = "kalc-lib")]
3033
//pub type C = kalc_lib::rug::Complex;
34+
#[cfg(feature = "kalc-lib")]
3135
pub type I = kalc_lib::types::f64::Integer;
36+
#[cfg(feature = "kalc-lib")]
3237
pub type F = kalc_lib::types::f64::Float;
38+
#[cfg(feature = "kalc-lib")]
3339
pub type C = kalc_lib::types::f64::Complex;
3440
#[cfg_attr(target_arch = "wasm32", wasm_bindgen(start))]
3541
pub fn main() {

0 commit comments

Comments
 (0)