Skip to content

Commit

Permalink
release: version 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Erin van der Veen committed May 15, 2024
1 parent 82a94a9 commit ba4f440
Show file tree
Hide file tree
Showing 9 changed files with 281 additions and 117 deletions.
306 changes: 224 additions & 82 deletions .github/workflows/release.yml

Large diffs are not rendered by default.

21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,31 @@ This name should be decided amongst the team before the release.

## Unreleased

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

## v0.4.0 - Exquisite Elm - 2024-05-15

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

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

### Fixed
- [#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
- [#673](https://github.com/tweag/topiary/pull/673) Various TOML fixes
- [#678](https://github.com/tweag/topiary/pull/678) Ensures the client example project builds, and is tested in CI
- [#677](https://github.com/tweag/topiary/pull/677) Ensures our playground builds consistently in CI
- [#682](https://github.com/tweag/topiary/pull/682) Removes prepended linebreaks from equal signs in Nickel annotations
- [#692](https://github.com/tweag/topiary/pull/692) Improves our installation instructions, thanks to @Jasha10

### Changed
- [#664](https://github.com/tweag/topiary/pull/664) Ensures source positions in the logs are consistent thanks to @evertedsphere
- [#668](https://github.com/tweag/topiary/pull/668) Updates our Nickel grammar
- [#672](https://github.com/tweag/topiary/pull/672) Completely refactors our crate layout, preparing for a release on crates.io

## v0.3.0 - Dreamy Dracaena - 2023-09-22

[Full list of changes](https://github.com/tweag/topiary/compare/v0.2.3...v0.3.0)
Expand Down
16 changes: 8 additions & 8 deletions Cargo.lock

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

21 changes: 9 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "0.3.0"
version = "0.4.0"
edition = "2021"
authors = ["Tweag"]
homepage = "https://topiary.tweag.io"
Expand Down Expand Up @@ -34,20 +34,17 @@ lto = "thin"
# Config for 'cargo dist'
[workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.0.7"
# The preferred Rust toolchain to use in CI (rustup toolchain syntax)
rust-toolchain-version = "1.74.0"
# CI backends to support (see 'cargo dist generate-ci')
cargo-dist-version = "0.13.2"
# CI backends to support
ci = ["github"]
# The installers to generate for each app
installers = ["shell", "powershell"]
installers = ["shell"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"aarch64-apple-darwin",
]
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
# Publish jobs to run in CI
pr-run-mode = "plan"
# Whether to install an updater program
install-updater = false

[workspace.dependencies]
assert_cmd = "2.0"
Expand Down
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
, craneLib
}:
let
wasmRustVersion = "1.74.0";
wasmRustVersion = "1.77.2";
wasmTarget = "wasm32-unknown-unknown";

rustWithWasmTarget = pkgs.rust-bin.stable.${wasmRustVersion}.default.override {
Expand Down
24 changes: 12 additions & 12 deletions flake.lock

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

1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ craneLib.devShell
//
(if optionals then {
packages = with pkgs; with binPkgs; [
cargo-dist
cargo-flamegraph
rust-analyzer

Expand Down
5 changes: 5 additions & 0 deletions topiary-cli/tests/cli-tester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ const TOML_INPUT: &str = r#" test= 123"#;
const TOML_EXPECTED: &str = r#"test = 123
"#;

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

impl State {
Expand Down
2 changes: 1 addition & 1 deletion topiary-web-tree-sitter-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extern "C" {

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

pub struct TreeSitter;
Expand Down

0 comments on commit ba4f440

Please sign in to comment.