-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flags allow you to disable certain functionality and compile with only select features to reduce build time. Resolves #54.
- Loading branch information
1 parent
e83618b
commit c347b6c
Showing
16 changed files
with
245 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
You can compile Ironbar from source using `cargo`. | ||
Just clone the repo and build: | ||
|
||
```sh | ||
git clone https://github.com/jakestanger/ironbar.git | ||
cd ironbar | ||
cargo build --release | ||
# change path to wherever you want to install | ||
install target/release/ironbar ~/.local/bin/ironbar | ||
``` | ||
|
||
## Features | ||
|
||
By default, all features are enabled for convenience. This can result in a significant compile time. | ||
If you know you are not going to need all the features, you can compile with only the features you need. | ||
|
||
As of `v0.10.0`, compiling with no features is about 33% faster. | ||
On a 3800X, it takes about 60 seconds for no features and 90 seconds for all. | ||
This difference is expected to increase as the bar develops. | ||
|
||
Features containing a `+` can be stacked, for example `config+json` and `config+yaml` could both be enabled. | ||
|
||
To build using only specific features, disable default features and pass a comma separated list to `cargo build`: | ||
|
||
```shell | ||
cargo build --release --no-default-features \ | ||
--features http,config+json,clock | ||
``` | ||
|
||
> ⚠ Make sure you enable at least one `config` feature otherwise you will not be able to start the bar! | ||
| Feature | Description | | ||
|---------------------|-----------------------------------------------------------------------------------| | ||
| **Core** | | | ||
| http | Enables HTTP features. Currently this includes the ability to load remote images. | | ||
| config+all | Enables support for all configuration languages. | | ||
| config+json | Enables configuration support for JSON. | | ||
| config+yaml | Enables configuration support for YAML. | | ||
| config+toml | Enables configuration support for TOML. | | ||
| config+corn | Enables configuration support for [Corn](https://github.com/jakestanger.corn). | | ||
| **Modules** | | | ||
| clock | Enables the `clock` module. | | ||
| music+all | Enables the `music` module with support for all player types. | | ||
| music+mpris | Enables the `music` module with MPRIS support. | | ||
| music+mpd | Enables the `music` module with MPD support | | ||
| sys_info | Enables the `sys_info` module. | | ||
| tray | Enables the `tray` module. | | ||
| workspaces+all | Enables the `workspaces` module with support for all compositors. | | ||
| workspaces+sway | Enables the `workspaces` module with support for Sway. | | ||
| workspaces+hyprland | Enables the `workspaces` module with support for Hyprland. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#[cfg(feature = "workspaces")] | ||
pub mod compositor; | ||
#[cfg(feature = "music")] | ||
pub mod music; | ||
#[cfg(feature = "tray")] | ||
pub mod system_tray; | ||
pub mod wayland; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.