Merge pull request #124 from w-flo/optional_config

[Breaking] Add `config` feature for `sailfish` crate
This commit is contained in:
Kogia-sima 2023-06-21 22:37:39 +09:00 committed by GitHub
commit 79b91f73f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View File

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

View File

@ -22,7 +22,7 @@ doctest = false
[features]
default = ["config"]
# enable configuration file (sailfish.yml) support
# enable configuration file (sailfish.toml) support
config = ["sailfish-compiler/config"]
[dependencies]

View File

@ -13,7 +13,9 @@ workspace = ".."
edition = "2018"
[features]
default = ["derive", "perf-inline"]
default = ["config", "derive", "perf-inline"]
# enable configuration file (sailfish.toml) support
config = ["sailfish-macros/config"]
# automatically import derive macro
derive = ["sailfish-macros"]
# enable json filter
@ -30,6 +32,7 @@ serde_json = { version = "1.0.95", optional = true }
[dependencies.sailfish-macros]
path = "../sailfish-macros"
version = "0.6.1"
default-features = false
optional = true
[build-dependencies]