Closed SamRodri closed 4 months ago
Questions:
API design:
cargo zng l10n --package=foo OR --manifest-path=foo/Cargo.toml
scraps foo/src/**/*.rs
to foo/l10n
.--deps
copies dependencies to foo/l10n/deps/{pkg-name}/
and foo/l10n/{lang}/deps/{pkg-name}/
.
{dep}/l10n/deps/
are copied to foo/l10n/deps
, copies after all dependencies copied, does not override files, alphabetic order.l10n!
embeds CARGO_PKG_NAME
, resolver uses it to search for deps dir first.Final API:
cargo zng l10n --package=foo OR --manifest-path=foo/Cargo.toml
scraps foo/src/**/*.rs
to foo/l10n
.--deps
copies dependencies to foo/l10n/{lang}/deps/{dep.name}/{dep.version}/
.
{dep}/l10n/deps/
are copied to foo/l10n/deps
, copies after all dependencies copied, does not override files, applies in alphabetical order, newer version first.l10n!
embeds CARGO_PKG_NAME
and CARGO_PKG_VERSION
, resolver uses it to search for deps dir for nearest version.cargo zng l10n --pseudo*
.
Implement a way for lib crates to export Fluent files.
The scrapper must find these files, the name must be unique