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`
68 lines
1.4 KiB
Plaintext
Vendored
68 lines
1.4 KiB
Plaintext
Vendored
"""
|
|
@generated
|
|
cargo-raze crate build file.
|
|
|
|
DO NOT EDIT! Replaced on runs of cargo-raze
|
|
"""
|
|
|
|
# buildifier: disable=load
|
|
load("@bazel_skylib//lib:selects.bzl", "selects")
|
|
|
|
# buildifier: disable=load
|
|
load(
|
|
"@rules_rust//rust:defs.bzl",
|
|
"rust_binary",
|
|
"rust_library",
|
|
"rust_proc_macro",
|
|
"rust_test",
|
|
)
|
|
|
|
package(default_visibility = [
|
|
# Public for visibility by "@raze__crate__version//" targets.
|
|
#
|
|
# Prefer access through "//cargo", which limits external
|
|
# visibility to explicit Cargo.toml dependencies.
|
|
"//visibility:public",
|
|
])
|
|
|
|
licenses([
|
|
"unencumbered", # Unlicense from expression "Unlicense OR MIT"
|
|
])
|
|
|
|
# Generated Targets
|
|
|
|
# Unsupported target "is_same_file" with type "example" omitted
|
|
|
|
# Unsupported target "is_stderr" with type "example" omitted
|
|
|
|
rust_library(
|
|
name = "same_file",
|
|
srcs = glob(["**/*.rs"]),
|
|
aliases = {
|
|
},
|
|
crate_features = [
|
|
],
|
|
crate_root = "src/lib.rs",
|
|
data = [],
|
|
edition = "2018",
|
|
rustc_flags = [
|
|
"--cap-lints=allow",
|
|
],
|
|
tags = [
|
|
"cargo-raze",
|
|
"manual",
|
|
],
|
|
version = "1.0.6",
|
|
# buildifier: leave-alone
|
|
deps = [
|
|
] + selects.with_or({
|
|
# cfg(windows)
|
|
(
|
|
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
|
|
): [
|
|
"@raze__winapi_util__0_1_5//:winapi_util",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
)
|