0efa3f944f
* Canonify import of i18n module Should always be imported as `tr`, or `tr2` if there is a name collision (Svelte). * Add helper for garbage collecting ftl strings Also add a serializer for ftl asts. * Add helper for filter-mapping `DirEntry`s * Fix `i18n_helpers/BUILD.bazel` * run cargo-raze * Refactor `garbage_collection.rs` - Improve helper for file iterating - Remove unused terms as well - Fix issue with checking for nested messages by switching to a regex- based approach (which runs before deleting) - Some more refactorings and lint fixes * Fix lints in `serialize.rs` * Write json pretty and sorted * Update `serialize.rs` and fix header * Fix doc and remove `dbg!` * Add binaries for ftl garbage collection Also relax type constraints and strip debug tests. * add rust_binary targets for i18n helpers (dae) * add scripts to update desktop usage/garbage collect (dae) Since we've already diverged from 2.1.49, we won't gain anything from generating a stable json just yet. But once 2.1.50 is released, we should run 'ftl/update-desktop-usage.sh stable'. * add keys from AnkiMobile (dae) * Mention caveats in `remove-unused.sh`
56 lines
1.5 KiB
TOML
56 lines
1.5 KiB
TOML
[package]
|
|
name = "anki_workspace"
|
|
version = "0.0.0"
|
|
authors = ["Ankitects Pty Ltd and contributors"]
|
|
license = "AGPL-3.0-or-later"
|
|
|
|
[workspace]
|
|
members = ["rslib", "rslib/i18n", "rslib/i18n_helpers", "pylib/rsbridge"]
|
|
exclude = ["qt/package"]
|
|
|
|
[lib]
|
|
# dummy top level for tooling
|
|
name = "anki"
|
|
path = "rslib/empty.rs"
|
|
|
|
[package.metadata.raze]
|
|
workspace_path = "//cargo"
|
|
package_aliases_dir = "cargo"
|
|
rust_rules_workspace_name = "rules_rust"
|
|
|
|
# pull requests that add other targets (eg Arm Linux, FreeBSD) welcome - you'll
|
|
# need to update platforms/, BUILD.request.bazel and pylib/anki/BUILD.bazel as
|
|
# well.
|
|
targets = [
|
|
"x86_64-apple-darwin",
|
|
"x86_64-apple-ios",
|
|
"x86_64-pc-windows-msvc",
|
|
"x86_64-unknown-linux-gnu",
|
|
"aarch64-apple-darwin",
|
|
"aarch64-apple-ios",
|
|
"aarch64-unknown-linux-gnu",
|
|
]
|
|
genmode = "Remote"
|
|
default_gen_buildrs = true
|
|
|
|
[package.metadata.raze.crates.pyo3.'*']
|
|
compile_data_attr = "glob([\"**/*.md\"])"
|
|
|
|
[package.metadata.raze.crates.ring.'*']
|
|
compile_data_attr = "glob([\"src/**/*.der\"])"
|
|
|
|
[package.metadata.raze.crates.webpki.'*']
|
|
compile_data_attr = "glob([\"src/**/*.der\"])"
|
|
|
|
[package.metadata.raze.crates.unic-ucd-version.'*']
|
|
compile_data_attr = "glob([\"**/*.rsv\"])"
|
|
|
|
[package.metadata.raze.crates.unic-ucd-category.'*']
|
|
compile_data_attr = "glob([\"**/*.rsv\"])"
|
|
|
|
[package.metadata.raze.crates.pyo3-build-config.'*']
|
|
buildrs_additional_environment_variables = { "PYO3_NO_PYTHON" = "1" }
|
|
|
|
[patch.crates-io]
|
|
reqwest = { git="https://github.com/ankitects/reqwest.git", rev="7591444614de02b658ddab125efba7b2bb4e2335" }
|