Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: release 0.4.0 #177

Merged
merged 1 commit into from
Feb 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .editorconfig

This file was deleted.

36 changes: 34 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,40 @@ Types of changes
- Security in case of vulnerabilities.
-->

## [0.4.0] - 2022-02-21

### Added

- A text user interface with progress-bars and modern output (requires a TTY).
- A text user interface with a progress-bar
and modern, colorful output (requires a tty).

When no tty is available
or in non-interactive environments like a CI/CD
or when piping alejandra to other commands (`$ alejandra 2> file`, `$ alejandra | cat`)
the old school program output will be used.

- A `--exclude` option to the CLI.

- Refactors to the codebase. We now comply with `clippy`, a Rust linter.

- A new structure to the codebase and link time optimizations.

Binaries were reduced in size by 15%
with respect to the previous release
(even with the added features),
performance was improved in the reference machine
from 45 seconds to 35 while formatting Nixpkgs on a single core.

### Changed

- The old school program output is now less verbose.

It prints only the path of files that were changed,
and a summary of the number of errors and files changed during formatting.

### Removed

- The `--debug` flag in the CLI.

## [0.3.1] - 2022-02-20

Expand Down Expand Up @@ -175,7 +206,8 @@ Types of changes

---

[unreleased]: https://github.com/kamadorueda/alejandra/compare/0.3.1...HEAD
[unreleased]: https://github.com/kamadorueda/alejandra/compare/0.4.0...HEAD
[0.4.0]: https://github.com/kamadorueda/alejandra/compare/0.3.1...0.4.0
[0.3.1]: https://github.com/kamadorueda/alejandra/compare/0.3.0...0.3.1
[0.3.0]: https://github.com/kamadorueda/alejandra/compare/0.2.0...0.3.0
[0.2.0]: https://github.com/kamadorueda/alejandra/compare/0.1.0...0.2.0
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ You can download a binary for your platform,
make it executable (`$ chmod +x`)
and have fun!

- [aarch64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/0.3.1/alejandra-aarch64-unknown-linux-musl)
- [armv6l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/0.3.1/alejandra-armv6l-unknown-linux-musleabihf)
- [armv7l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/0.3.1/alejandra-armv7l-unknown-linux-musleabihf)
- [i686-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/0.3.1/alejandra-i686-unknown-linux-musl)
- [x86_64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/0.3.1/alejandra-x86_64-unknown-linux-musl)
- [aarch64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/0.4.0/alejandra-aarch64-unknown-linux-musl)
- [armv6l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/0.4.0/alejandra-armv6l-unknown-linux-musleabihf)
- [armv7l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/0.4.0/alejandra-armv7l-unknown-linux-musleabihf)
- [i686-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/0.4.0/alejandra-i686-unknown-linux-musl)
- [x86_64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/0.4.0/alejandra-x86_64-unknown-linux-musl)

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

```bash
$ nix profile install github:kamadorueda/alejandra/0.3.1
$ nix profile install github:kamadorueda/alejandra/0.4.0
```

- Nix stable:

Pick one depending on your platform:

```bash
$ nix-env -ivA aarch64-darwin -f https://github.com/kamadorueda/alejandra/tarball/0.3.1
$ nix-env -ivA aarch64-linux -f https://github.com/kamadorueda/alejandra/tarball/0.3.1
$ nix-env -ivA x86_64-darwin -f https://github.com/kamadorueda/alejandra/tarball/0.3.1
$ nix-env -ivA x86_64-linux -f https://github.com/kamadorueda/alejandra/tarball/0.3.1
$ nix-env -ivA aarch64-darwin -f https://github.com/kamadorueda/alejandra/tarball/0.4.0
$ nix-env -ivA aarch64-linux -f https://github.com/kamadorueda/alejandra/tarball/0.4.0
$ nix-env -ivA x86_64-darwin -f https://github.com/kamadorueda/alejandra/tarball/0.4.0
$ nix-env -ivA x86_64-linux -f https://github.com/kamadorueda/alejandra/tarball/0.4.0
```

Then run Alejandra with:
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
outputs = inputs: let
commit = inputs.self.shortRev or "dirty";
date = inputs.self.lastModifiedDate or inputs.self.lastModified or "19700101";
version = "0.3.1+${builtins.substring 0 8 date}.${commit}";
version = "0.4.0+${builtins.substring 0 8 date}.${commit}";

nixpkgsForHost = host:
import inputs.nixpkgs {
Expand Down
4 changes: 2 additions & 2 deletions front/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion front/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description = "The Uncompromising Nix Code Formatter"
edition = "2021"
name = "alejandra_front"
repository = "https://github.com/kamadorueda/alejandra"
version = "0.3.1"
version = "0.4.0"

[profile.release]
lto = true
Expand Down
18 changes: 9 additions & 9 deletions front/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion installers/aarch64-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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

Expand Down
2 changes: 1 addition & 1 deletion installers/x86_64-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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

Expand Down
23 changes: 0 additions & 23 deletions pre-commit.sh

This file was deleted.

2 changes: 1 addition & 1 deletion src/alejandra_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ description = "The Uncompromising Nix Code Formatter"
edition = "2021"
name = "alejandra_cli"
repository = "https://github.com/kamadorueda/alejandra"
version = "0.3.1"
version = "0.4.0"
2 changes: 1 addition & 1 deletion src/alejandra_engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ description = "The Uncompromising Nix Code Formatter"
edition = "2021"
name = "alejandra_engine"
repository = "https://github.com/kamadorueda/alejandra"
version = "0.3.1"
version = "0.4.0"
2 changes: 1 addition & 1 deletion src/alejandra_engine/src/version.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub const VERSION: &str = "0.3.1";
pub const VERSION: &str = "0.4.0";