9701055eb5
Provides better visibility into what the build is currently doing. Motivated by slow node.js downloads making the build appear stuck. You can test this out by running ./tools/install-n2 then building normally. Please report any problems, and 'cargo uninstall n2' to get back to the old behaviour. It works on Windows, but prints a new line each second instead of redrawing the same area. A couple of changes were required for compatibility: - n2 doesn't resolve $variable names inside other variables, so the resolution needs to be done by our build generator. - Our inputs and outputs in build.ninja need to be listed in a deterministic order to avoid unwanted rebuilds. I've made a few other tweaks so the build file should now be fully-deterministic.
37 lines
947 B
TOML
37 lines
947 B
TOML
[package]
|
|
name = "anki_i18n"
|
|
build = "build/main.rs"
|
|
publish = false
|
|
description = "Anki's Rust library i18n code"
|
|
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[lib]
|
|
name = "anki_i18n"
|
|
path = "src/lib.rs"
|
|
|
|
[build-dependencies]
|
|
fluent-syntax = "0.11.0"
|
|
fluent = "0.16.0"
|
|
unic-langid = { version = "0.9.1", features = ["macros"] }
|
|
serde = { version = "1.0.159", features = ["derive"] }
|
|
serde_json = "1.0.95"
|
|
inflections = "1.1.1"
|
|
anki_io = { version = "0.0.0", path = "../io" }
|
|
anyhow = "1.0.71"
|
|
|
|
[dependencies]
|
|
fluent = "0.16.0"
|
|
fluent-bundle = "0.15.2"
|
|
intl-memoizer = "0.5.1"
|
|
num-format = "0.4.4"
|
|
phf = { version = "0.11.1", features = ["macros"] }
|
|
serde = { version = "1.0.159", features = ["derive"] }
|
|
serde_json = "1.0.95"
|
|
unic-langid = { version = "0.9.1", features = ["macros"] }
|
|
workspace-hack = { version = "0.1", path = "../../tools/workspace-hack" }
|