Skip to content

Commit 0b52f09

Browse files
committed
fixes #153, remove the inspector feature
1 parent e3553f5 commit 0b52f09

File tree

22 files changed

+0
-173
lines changed

22 files changed

+0
-173
lines changed

apps/notation_kb/Makefile.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ dependencies = ["build-web", "basic-http-server"]
5050
[tasks.test]
5151
disabled = true
5252

53-
[tasks.release-inspector]
54-
args = ["bundle", "--features", "inspector", "@@split(CARGO_RELEASE_ARGS, )"]
55-
command = "cargo"
56-
5753
[tasks.release-native]
5854
args = ["bundle", "--features", "native", "@@split(CARGO_RELEASE_ARGS, )"]
5955
command = "cargo"

apps/notation_kb_cn/Makefile.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ dependencies = ["build-web", "basic-http-server"]
5050
[tasks.test]
5151
disabled = true
5252

53-
[tasks.release-inspector]
54-
args = ["bundle", "--features", "inspector", "@@split(CARGO_RELEASE_ARGS, )"]
55-
command = "cargo"
56-
5753
[tasks.release-native]
5854
args = ["bundle", "--features", "native", "@@split(CARGO_RELEASE_ARGS, )"]
5955
command = "cargo"

apps/notation_viewer/Makefile.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ dependencies = ["build-web", "basic-http-server"]
5050
[tasks.test]
5151
disabled = true
5252

53-
[tasks.release-inspector]
54-
args = ["bundle", "--features", "inspector", "@@split(CARGO_RELEASE_ARGS, )"]
55-
command = "cargo"
56-
5753
[tasks.release-native]
5854
args = ["bundle", "--features", "native", "@@split(CARGO_RELEASE_ARGS, )"]
5955
command = "cargo"

apps/notation_viewer_cn/Makefile.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ dependencies = ["build-web", "basic-http-server"]
5050
[tasks.test]
5151
disabled = true
5252

53-
[tasks.release-inspector]
54-
args = ["bundle", "--features", "inspector", "@@split(CARGO_RELEASE_ARGS, )"]
55-
command = "cargo"
56-
5753
[tasks.release-native]
5854
args = ["bundle", "--features", "native", "@@split(CARGO_RELEASE_ARGS, )"]
5955
command = "cargo"

crates/notation_bevy/Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,6 @@ bevy_asset_loader = "0.8.0"
6666
rfd = "0.6.3"
6767
lazy_static = "1.4.0"
6868

69-
#[target."cfg(not(target_arch = "wasm32"))".dependencies]
70-
# Can not enable bevy_wgpu in this way, so the actually binary crate
71-
# need to include native feature manually
72-
# https://github.com/rust-lang/cargo/issues/1197
73-
# if not providing the dev and inspector feature, then can create a
74-
# wrapper crate, though think having these features benefits more
75-
7669
[target.'cfg(target_arch = "wasm32")'.dependencies]
7770
wasm-bindgen = "0.2.78"
7871
console_error_panic_hook = "0.1"

crates/notation_bevy/src/inspector/mod.rs

Lines changed: 0 additions & 32 deletions
This file was deleted.

crates/notation_bevy/src/inspector/syllable.rs

Lines changed: 0 additions & 24 deletions
This file was deleted.

crates/notation_bevy/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ pub use notation_midi;
1111

1212
pub use {bevy, bevy_prototype_lyon, bevy_egui, bevy_asset_loader};
1313

14-
#[cfg(feature = "inspector")]
15-
pub use bevy_inspector_egui;
16-
1714
pub mod chord;
1815
pub mod entry;
1916
pub mod tone;
@@ -43,9 +40,6 @@ pub mod notation;
4340
#[cfg(target_arch = "wasm32")]
4441
pub mod wasm;
4542

46-
#[cfg(feature = "inspector")]
47-
pub mod inspector;
48-
4943
#[cfg(feature = "dev")]
5044
pub mod dev;
5145

crates/notation_bevy/src/notation/app.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ impl NotationApp {
8686
#[cfg(feature = "dev")]
8787
app.add_plugins(crate::dev::NotationDevPlugins);
8888

89-
#[cfg(feature = "inspector")]
90-
app.add_plugins(crate::inspector::NotationInspectorPlugins);
91-
9289
app
9390
}
9491

crates/notation_bevy/src/settings/layout_settings.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@ use notation_model::lane_kind::LaneKind;
77
use notation_model::prelude::Position;
88
use serde::{Deserialize, Serialize};
99

10-
#[cfg(feature = "inspector")]
11-
use bevy_inspector_egui::Inspectable;
12-
1310
use crate::bar::bar_layout::BarLayoutData;
1411
use crate::lane::lane_layout::LaneLayoutData;
1512
use crate::play::pos_indicator::PosIndicatorData;
1613
use crate::prelude::{NotationTheme, TabBars};
1714

1815
#[derive(Copy, Clone, PartialEq, Eq, Serialize, Deserialize, Debug)]
19-
#[cfg_attr(feature = "inspector", derive(Inspectable))]
2016
pub enum LayoutMode {
2117
Grid,
2218
Line,
@@ -28,7 +24,6 @@ impl Default for LayoutMode {
2824
}
2925

3026
#[derive(Copy, Clone, PartialEq, Eq, Serialize, Deserialize, Debug)]
31-
#[cfg_attr(feature = "inspector", derive(Inspectable))]
3227
pub enum GridAlignMode {
3328
Center,
3429
ForceCenter,
@@ -42,7 +37,6 @@ impl Default for GridAlignMode {
4237
}
4338

4439
#[derive(Clone, Serialize, Deserialize, Debug)]
45-
#[cfg_attr(feature = "inspector", derive(Inspectable))]
4640
pub struct LayoutSettings {
4741
pub mode: LayoutMode,
4842
pub grid_align_mode: GridAlignMode,

0 commit comments

Comments
 (0)