Skip to content

Commit 2cf592a

Browse files
committed
feat: release 0.4.0
1 parent eb7c058 commit 2cf592a

15 files changed

+67
-87
lines changed

.editorconfig

-29
This file was deleted.

CHANGELOG.md

+34-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,40 @@ Types of changes
1717
- Security in case of vulnerabilities.
1818
-->
1919

20+
## [0.4.0] - 2022-02-21
21+
2022
### Added
2123

22-
- A text user interface with progress-bars and modern output (requires a TTY).
24+
- A text user interface with a progress-bar
25+
and modern, colorful output (requires a tty).
26+
27+
When no tty is available
28+
or in non-interactive environments like a CI/CD
29+
or when piping alejandra to other commands (`$ alejandra 2> file`, `$ alejandra | cat`)
30+
the old school program output will be used.
31+
32+
- A `--exclude` option to the CLI.
33+
34+
- Refactors to the codebase. We now comply with `clippy`, a Rust linter.
35+
36+
- A new structure to the codebase and link time optimizations.
37+
38+
Binaries were reduced in size by 15%
39+
with respect to the previous release
40+
(even with the added features),
41+
performance was improved in the reference machine
42+
from 45 seconds to 35 while formatting Nixpkgs on a single core.
43+
44+
### Changed
45+
46+
- The old school program output is now less verbose.
47+
48+
It prints only the path of files that were changed,
49+
and a summary of the number of errors and files changed during formatting.
50+
51+
### Removed
52+
53+
- The `--debug` flag in the CLI.
2354

2455
## [0.3.1] - 2022-02-20
2556

@@ -175,7 +206,8 @@ Types of changes
175206

176207
---
177208

178-
[unreleased]: https://github.com/kamadorueda/alejandra/compare/0.3.1...HEAD
209+
[unreleased]: https://github.com/kamadorueda/alejandra/compare/0.4.0...HEAD
210+
[0.4.0]: https://github.com/kamadorueda/alejandra/compare/0.3.1...0.4.0
179211
[0.3.1]: https://github.com/kamadorueda/alejandra/compare/0.3.0...0.3.1
180212
[0.3.0]: https://github.com/kamadorueda/alejandra/compare/0.2.0...0.3.0
181213
[0.2.0]: https://github.com/kamadorueda/alejandra/compare/0.1.0...0.2.0

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ You can download a binary for your platform,
109109
make it executable (`$ chmod +x`)
110110
and have fun!
111111

112-
- [aarch64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/0.3.1/alejandra-aarch64-unknown-linux-musl)
113-
- [armv6l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/0.3.1/alejandra-armv6l-unknown-linux-musleabihf)
114-
- [armv7l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/0.3.1/alejandra-armv7l-unknown-linux-musleabihf)
115-
- [i686-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/0.3.1/alejandra-i686-unknown-linux-musl)
116-
- [x86_64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/0.3.1/alejandra-x86_64-unknown-linux-musl)
112+
- [aarch64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/0.4.0/alejandra-aarch64-unknown-linux-musl)
113+
- [armv6l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/0.4.0/alejandra-armv6l-unknown-linux-musleabihf)
114+
- [armv7l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/0.4.0/alejandra-armv7l-unknown-linux-musleabihf)
115+
- [i686-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/0.4.0/alejandra-i686-unknown-linux-musl)
116+
- [x86_64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/0.4.0/alejandra-x86_64-unknown-linux-musl)
117117

118118
Alternatively there is an automated method for some platforms.
119119
It needs:
@@ -144,18 +144,18 @@ $ /path/to/alejandra --help
144144
- Nix with [Flakes](https://nixos.wiki/wiki/Flakes):
145145

146146
```bash
147-
$ nix profile install github:kamadorueda/alejandra/0.3.1
147+
$ nix profile install github:kamadorueda/alejandra/0.4.0
148148
```
149149

150150
- Nix stable:
151151

152152
Pick one depending on your platform:
153153

154154
```bash
155-
$ nix-env -ivA aarch64-darwin -f https://github.com/kamadorueda/alejandra/tarball/0.3.1
156-
$ nix-env -ivA aarch64-linux -f https://github.com/kamadorueda/alejandra/tarball/0.3.1
157-
$ nix-env -ivA x86_64-darwin -f https://github.com/kamadorueda/alejandra/tarball/0.3.1
158-
$ nix-env -ivA x86_64-linux -f https://github.com/kamadorueda/alejandra/tarball/0.3.1
155+
$ nix-env -ivA aarch64-darwin -f https://github.com/kamadorueda/alejandra/tarball/0.4.0
156+
$ nix-env -ivA aarch64-linux -f https://github.com/kamadorueda/alejandra/tarball/0.4.0
157+
$ nix-env -ivA x86_64-darwin -f https://github.com/kamadorueda/alejandra/tarball/0.4.0
158+
$ nix-env -ivA x86_64-linux -f https://github.com/kamadorueda/alejandra/tarball/0.4.0
159159
```
160160

161161
Then run Alejandra with:

flake.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
outputs = inputs: let
1212
commit = inputs.self.shortRev or "dirty";
1313
date = inputs.self.lastModifiedDate or inputs.self.lastModified or "19700101";
14-
version = "0.3.1+${builtins.substring 0 8 date}.${commit}";
14+
version = "0.4.0+${builtins.substring 0 8 date}.${commit}";
1515

1616
nixpkgsForHost = host:
1717
import inputs.nixpkgs {

front/Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description = "The Uncompromising Nix Code Formatter"
1414
edition = "2021"
1515
name = "alejandra_front"
1616
repository = "https://github.com/kamadorueda/alejandra"
17-
version = "0.3.1"
17+
version = "0.4.0"
1818

1919
[profile.release]
2020
lto = true

front/flake.lock

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

installers/aarch64-linux.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
releases=https://github.com/kamadorueda/alejandra/releases/download/
44
target=alejandra-aarch64-unknown-linux-musl
5-
version=0.3.1
5+
version=0.4.0
66

77
curl -o alejandra -L "${releases}/${version}/${target}"
88

installers/x86_64-linux.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
releases=https://github.com/kamadorueda/alejandra/releases/download/
44
target=alejandra-x86_64-unknown-linux-musl
5-
version=0.3.1
5+
version=0.4.0
66

77
curl -o alejandra -L "${releases}/${version}/${target}"
88

pre-commit.sh

-23
This file was deleted.

src/alejandra_cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ description = "The Uncompromising Nix Code Formatter"
1818
edition = "2021"
1919
name = "alejandra_cli"
2020
repository = "https://github.com/kamadorueda/alejandra"
21-
version = "0.3.1"
21+
version = "0.4.0"

src/alejandra_engine/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ description = "The Uncompromising Nix Code Formatter"
1010
edition = "2021"
1111
name = "alejandra_engine"
1212
repository = "https://github.com/kamadorueda/alejandra"
13-
version = "0.3.1"
13+
version = "0.4.0"

src/alejandra_engine/src/version.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pub const VERSION: &str = "0.3.1";
1+
pub const VERSION: &str = "0.4.0";

0 commit comments

Comments
 (0)