Skip to content

Commit ba4f440

Browse files
author
Erin van der Veen
committed
release: version 0.4.0
1 parent 82a94a9 commit ba4f440

File tree

9 files changed

+281
-117
lines changed

9 files changed

+281
-117
lines changed

.github/workflows/release.yml

Lines changed: 224 additions & 82 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,31 @@ This name should be decided amongst the team before the release.
4242

4343
## Unreleased
4444

45-
[Full list of changes](https://github.com/tweag/topiary/compare/v0.3.0...HEAD)
45+
[Full list of changes](https://github.com/tweag/topiary/compare/v0.4.0...HEAD)
46+
47+
## v0.4.0 - Exquisite Elm - 2024-05-15
48+
49+
[Full list of changes](https://github.com/tweag/topiary/compare/v0.3.0...v0.4.0)
4650

4751
### Added
52+
- [#589](https://github.com/tweag/topiary/pull/589) Added syntax highlighting to the playground (excluding Nickel)
53+
- [#686](https://github.com/tweag/topiary/pull/686) Added support for Nickel pattern formatting
4854
- [#697](https://github.com/tweag/topiary/pull/697) Setting the log level to INFO now outputs the pattern locations in a (row, column) way.
4955
- [#699](https://github.com/tweag/topiary/pull/699) Added support for CSS, thanks to @lavigneer
5056

57+
### Fixed
58+
- [#626](https://github.com/tweag/topiary/pull/626) [#627](https://github.com/tweag/topiary/pull/627) [#628](https://github.com/tweag/topiary/pull/628) [#626](https://github.com/tweag/topiary/pull/648) Various OCaml improvements
59+
- [#673](https://github.com/tweag/topiary/pull/673) Various TOML fixes
60+
- [#678](https://github.com/tweag/topiary/pull/678) Ensures the client example project builds, and is tested in CI
61+
- [#677](https://github.com/tweag/topiary/pull/677) Ensures our playground builds consistently in CI
62+
- [#682](https://github.com/tweag/topiary/pull/682) Removes prepended linebreaks from equal signs in Nickel annotations
63+
- [#692](https://github.com/tweag/topiary/pull/692) Improves our installation instructions, thanks to @Jasha10
64+
65+
### Changed
66+
- [#664](https://github.com/tweag/topiary/pull/664) Ensures source positions in the logs are consistent thanks to @evertedsphere
67+
- [#668](https://github.com/tweag/topiary/pull/668) Updates our Nickel grammar
68+
- [#672](https://github.com/tweag/topiary/pull/672) Completely refactors our crate layout, preparing for a release on crates.io
69+
5170
## v0.3.0 - Dreamy Dracaena - 2023-09-22
5271

5372
[Full list of changes](https://github.com/tweag/topiary/compare/v0.2.3...v0.3.0)

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace.package]
2-
version = "0.3.0"
2+
version = "0.4.0"
33
edition = "2021"
44
authors = ["Tweag"]
55
homepage = "https://topiary.tweag.io"
@@ -34,20 +34,17 @@ lto = "thin"
3434
# Config for 'cargo dist'
3535
[workspace.metadata.dist]
3636
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
37-
cargo-dist-version = "0.0.7"
38-
# The preferred Rust toolchain to use in CI (rustup toolchain syntax)
39-
rust-toolchain-version = "1.74.0"
40-
# CI backends to support (see 'cargo dist generate-ci')
37+
cargo-dist-version = "0.13.2"
38+
# CI backends to support
4139
ci = ["github"]
4240
# The installers to generate for each app
43-
installers = ["shell", "powershell"]
41+
installers = ["shell"]
4442
# Target platforms to build apps for (Rust target-triple syntax)
45-
targets = [
46-
"x86_64-unknown-linux-gnu",
47-
"x86_64-apple-darwin",
48-
"x86_64-pc-windows-msvc",
49-
"aarch64-apple-darwin",
50-
]
43+
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
44+
# Publish jobs to run in CI
45+
pr-run-mode = "plan"
46+
# Whether to install an updater program
47+
install-updater = false
5148

5249
[workspace.dependencies]
5350
assert_cmd = "2.0"

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
, craneLib
88
}:
99
let
10-
wasmRustVersion = "1.74.0";
10+
wasmRustVersion = "1.77.2";
1111
wasmTarget = "wasm32-unknown-unknown";
1212

1313
rustWithWasmTarget = pkgs.rust-bin.stable.${wasmRustVersion}.default.override {

flake.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shell.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ craneLib.devShell
1414
//
1515
(if optionals then {
1616
packages = with pkgs; with binPkgs; [
17+
cargo-dist
1718
cargo-flamegraph
1819
rust-analyzer
1920

topiary-cli/tests/cli-tester.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ const TOML_INPUT: &str = r#" test= 123"#;
1717
const TOML_EXPECTED: &str = r#"test = 123
1818
"#;
1919

20+
// The TempDir member of the State is not actually used.
21+
// However, removing it means that the directory is dropped at the end of the new() function, which causes it to be deleted.
22+
// This causes the path to the state file to be invalid and breaks the tests.
23+
// So, we keep the TempDir around so the tests don't break.
24+
#[allow(dead_code)]
2025
struct State(TempDir, PathBuf);
2126

2227
impl State {

topiary-web-tree-sitter-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern "C" {
3939

4040
thread_local! {
4141
// Ensure `web-tree-sitter` is only initialized once
42-
static TREE_SITTER_INITIALIZED: RefCell<bool> = RefCell::new(false);
42+
static TREE_SITTER_INITIALIZED: RefCell<bool> = const { RefCell::new(false) };
4343
}
4444

4545
pub struct TreeSitter;

0 commit comments

Comments
 (0)