leb-kuchen / cosmic-ext-applet-emoji-selector

Emoji Selector for COSMIC™️ DE
MIT License
34 stars 3 forks source link

rust 21 edition build warning #17

Open nbycoder opened 1 month ago

nbycoder commented 1 month ago

Hello! I've just installed this, but when building it, I get the following warnings:

warning: unexpected 'cfg' condition value: 'a11y'
 --> src/widget_copy/scrollable.rs:6:7
  |
6 | #[cfg(feature = "a11y")]
  |       ^^^^^^^^^^^^^^^^ help: remove the condition
  |
  = note: no expected values for 'feature'
  = help: consider adding 'a11y' as a feature in 'Cargo.toml'
  = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
  = note: '#[warn(unexpected_cfgs)]' on by default

warning: unexpected 'cfg' condition value: 'a11y'
  --> src/widget_copy/scrollable.rs:39:11
   |
39 |     #[cfg(feature = "a11y")]
   |           ^^^^^^^^^^^^^^^^ help: remove the condition
   |
   = note: no expected values for 'feature'
   = help: consider adding 'a11y' as a feature in 'Cargo.toml'
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected 'cfg' condition value: 'a11y'
  --> src/widget_copy/scrollable.rs:41:11
   |
41 |     #[cfg(feature = "a11y")]
   |           ^^^^^^^^^^^^^^^^ help: remove the condition
   |
   = note: no expected values for 'feature'
   = help: consider adding 'a11y' as a feature in 'Cargo.toml'
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected 'cfg' condition value: 'a11y'
  --> src/widget_copy/scrollable.rs:43:11
   |
43 |     #[cfg(feature = "a11y")]
   |           ^^^^^^^^^^^^^^^^ help: remove the condition
   |
   = note: no expected values for 'feature'
   = help: consider adding 'a11y' as a feature in 'Cargo.toml'
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected 'cfg' condition value: 'a11y'
   --> src/widget_copy/scrollable.rs:115:11
    |
115 |     #[cfg(feature = "a11y")]
    |           ^^^^^^^^^^^^^^^^ help: remove the condition
    |
    = note: no expected values for 'feature'
    = help: consider adding 'a11y' as a feature in 'Cargo.toml'
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected 'cfg' condition value: 'a11y'
   --> src/widget_copy/scrollable.rs:122:11
    |
122 |     #[cfg(feature = "a11y")]
    |           ^^^^^^^^^^^^^^^^ help: remove the condition
    |
    = note: no expected values for 'feature'
    = help: consider adding 'a11y' as a feature in 'Cargo.toml'
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected 'cfg' condition value: 'a11y'
   --> src/widget_copy/scrollable.rs:131:11
    |
131 |     #[cfg(feature = "a11y")]
    |           ^^^^^^^^^^^^^^^^ help: remove the condition
    |
    = note: no expected values for 'feature'
    = help: consider adding 'a11y' as a feature in 'Cargo.toml'
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected 'cfg' condition value: 'a11y'
   --> src/widget_copy/scrollable.rs:138:11
    |
138 |     #[cfg(feature = "a11y")]
    |           ^^^^^^^^^^^^^^^^ help: remove the condition
    |
    = note: no expected values for 'feature'
    = help: consider adding 'a11y' as a feature in 'Cargo.toml'
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected 'cfg' condition value: 'a11y'
  --> src/widget_copy/scrollable.rs:63:19
   |
63 |             #[cfg(feature = "a11y")]
   |                   ^^^^^^^^^^^^^^^^ help: remove the condition
   |
   = note: no expected values for 'feature'
   = help: consider adding 'a11y' as a feature in 'Cargo.toml'
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected 'cfg' condition value: 'a11y'
  --> src/widget_copy/scrollable.rs:65:19
   |
65 |             #[cfg(feature = "a11y")]
   |                   ^^^^^^^^^^^^^^^^ help: remove the condition
   |
   = note: no expected values for 'feature'
   = help: consider adding 'a11y' as a feature in 'Cargo.toml'
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected 'cfg' condition value: 'a11y'
  --> src/widget_copy/scrollable.rs:67:19
   |
67 |             #[cfg(feature = "a11y")]
   |                   ^^^^^^^^^^^^^^^^ help: remove the condition
   |
   = note: no expected values for 'feature'
   = help: consider adding 'a11y' as a feature in 'Cargo.toml'
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected 'cfg' condition value: 'a11y'
   --> src/widget_copy/scrollable.rs:443:11
    |
443 |     #[cfg(feature = "a11y")]
    |           ^^^^^^^^^^^^^^^^ help: remove the condition
    |
    = note: no expected values for 'feature'
    = help: consider adding 'a11y' as a feature in 'Cargo.toml'
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected 'cfg' condition value: 'wayland'
   --> src/widget_copy/scrollable.rs:706:15
    |
706 |         #[cfg(feature = "wayland")]
    |               ^^^^^^^^^^^^^^^^^^^ help: remove the condition
    |
    = note: no expected values for 'feature'
    = help: consider adding 'wayland' as a feature in 'Cargo.toml'
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: 'cosmic-applet-emoji-selector' (bin "cosmic-applet-emoji-selector") generated 13 warnings
    Finished 'release' profile [optimized] target(s) in 9.47s

I was wondering if I can ignore this or if it'll impact my use of the app? Thanks! :)

leb-kuchen commented 3 weeks ago

These are just warnings, which will be fixed when the latest branch is merged into main, but the build is fine.