diff --git a/CHANGELOG.md b/CHANGELOG.md index 63af92c..fe54cac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. + ## [v0.4.0](https://github.com/rust-sailfish/sailfish/compare/v0.3.4...v0.4.0) (2022-03-10) diff --git a/sailfish-macros/Cargo.toml b/sailfish-macros/Cargo.toml index 114f526..25b0c29 100644 --- a/sailfish-macros/Cargo.toml +++ b/sailfish-macros/Cargo.toml @@ -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] diff --git a/sailfish/Cargo.toml b/sailfish/Cargo.toml index 24c7f08..84e56a8 100644 --- a/sailfish/Cargo.toml +++ b/sailfish/Cargo.toml @@ -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]