advotracker_client: adopt usage of crate twine
* i18n crate * twine::build_translations(): generate the i18n.rs with all language translation strings * twine::build_translations_from_readers(): generates to t!() macro readers: the INI files with the translation strings * twine::t() consumes the strings
This commit is contained in:
@@ -9,22 +9,12 @@ edition = "2018"
|
||||
default-run = "advotracker"
|
||||
build = "build.rs"
|
||||
|
||||
#[target.x86_64-pc-windows-gnu]
|
||||
#linker = "lld-link"
|
||||
|
||||
|
||||
#[target.x86_64-pc-windows-msvc]
|
||||
#linker = "lld-link"
|
||||
# linker path on msvc set via system environment
|
||||
#linker = "link.exe"
|
||||
##windres = { git = "https://github.com/FaultyRAM/windres-rs", branch = "master" }
|
||||
##diesel = { version = "1.4", features = [ "postgres", "sqlite" ] }
|
||||
##winapi = { version = "0.3", features = [ "winuser" ] }
|
||||
[target.x86_64-pc-windows-gnu]
|
||||
linker = "lld-link"
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
winapi = { version = "0.3", features = [ "winuser" ] }
|
||||
windres = { git = "https://github.com/FaultyRAM/windres-rs", branch = "master" }
|
||||
#diesel = { version = "1.4", features = [ "postgres", "sqlite" ] }
|
||||
|
||||
[dependencies]
|
||||
async-stream = "~0.2"
|
||||
@@ -34,29 +24,23 @@ clap = { version = "~2.33", features = ["suggestions", "color"] }
|
||||
csv = { version = "~1.1" }
|
||||
dotenv = { version = "~0.15.0" }
|
||||
envy = { version = "~0.4" }
|
||||
#lettre ={ version = "0.10.0-beta.1", features = ["smtp-transport", "native-tls", "hostname", "r2d2", "builder"] }
|
||||
lettre ={ version = "0.10.0-beta.1" }
|
||||
lazy_static = { version = "~1.4.0" }
|
||||
log = { version = "~0.4.8" }
|
||||
locales = { version = "~0.1" }
|
||||
maud = { version = "~0.22.1" }
|
||||
#orbtk = { version = "~0.3.1-alpha4" }
|
||||
orbtk = { git = "https://github.com/redox-os/orbtk.git", branch = "develop" }
|
||||
#orbtk = { path = "../../../orbtk" }
|
||||
serde = { version = "~1.0", features = ["derive"] }
|
||||
serde = { version = "~1", features = ["derive"] }
|
||||
sdl2 = { version = "~0.34", features = ["bundled"] }
|
||||
substring = { version = "~1" }
|
||||
#tokio = { version = "~0.2", features = ["macros", "rt-threaded", "stream", "time"] }
|
||||
tracing = { version = "~0.1" }
|
||||
tracing-subscriber = { version = "~0.2.0", features = ["tracing-log"] }
|
||||
viperus = { git = "https://github.com/maurocordioli/viperus", features = ["cache", "fmt-clap", "fmt-env", "global", "watch"] }
|
||||
twine = { version = "~0.3.8", features = ["serde"] }
|
||||
|
||||
[build-dependencies]
|
||||
#winres = { version = "0.1" }
|
||||
winres = { version = "0.1.11" }
|
||||
|
||||
#[dev-dependencies]
|
||||
|
||||
[features]
|
||||
default = []
|
||||
debug = ["orbtk/debug"]
|
||||
@@ -71,10 +55,6 @@ description = "Supports lawyers to capture relevant data encountered during an o
|
||||
[package.metadata.winres]
|
||||
LegalCopyright = "Copyright © 2020-2021"
|
||||
|
||||
#[[bin]]
|
||||
#//name = "policycheck"
|
||||
#path = "src/bin/policycheck.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "advotracker"
|
||||
path = "src/main.rs"
|
||||
|
||||
Reference in New Issue
Block a user