Skip to content

Commit 79b91f7

Browse files
authored
Merge pull request #124 from w-flo/optional_config
[Breaking] Add `config` feature for `sailfish` crate
2 parents 9b0cd62 + 1c0231b commit 79b91f7

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## [Unreleased]
2+
3+
### Breaking Change
4+
5+
* Add `config` feature for crate `sailfish`. It is enabled by default. In previous
6+
versions, the functionality enabled by the `config` feature was always available. If the
7+
feature is disabled, any configuration files (sailfish.toml) are ignored by the template
8+
compiler. This speeds up the compiler a bit, and decreases the number of dependencies
9+
required, so it can be useful for applications that don't use sailfish.toml configuration
10+
files and want to speed up their build process.
11+
112
<a name="v0.4.0"></a>
213
## [v0.4.0](https://github.com/rust-sailfish/sailfish/compare/v0.3.4...v0.4.0) (2022-03-10)
314

sailfish-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ doctest = false
2222

2323
[features]
2424
default = ["config"]
25-
# enable configuration file (sailfish.yml) support
25+
# enable configuration file (sailfish.toml) support
2626
config = ["sailfish-compiler/config"]
2727

2828
[dependencies]

sailfish/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ workspace = ".."
1313
edition = "2018"
1414

1515
[features]
16-
default = ["derive", "perf-inline"]
16+
default = ["config", "derive", "perf-inline"]
17+
# enable configuration file (sailfish.toml) support
18+
config = ["sailfish-macros/config"]
1719
# automatically import derive macro
1820
derive = ["sailfish-macros"]
1921
# enable json filter
@@ -30,6 +32,7 @@ serde_json = { version = "1.0.95", optional = true }
3032
[dependencies.sailfish-macros]
3133
path = "../sailfish-macros"
3234
version = "0.6.1"
35+
default-features = false
3336
optional = true
3437

3538
[build-dependencies]

0 commit comments

Comments
 (0)