Skip to content

Commit

Permalink
updated deps
Browse files Browse the repository at this point in the history
- code change to lang.rs because update to fluent-bundle
  • Loading branch information
msuesskraut committed Jan 31, 2021
1 parent 5c68f0f commit f00b70c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "binoxxo-webapp-seed"
version = "0.4.0"
version = "0.5.0"
authors = ["Martin Suesskraut <[email protected]>"]
edition = "2018"
readme = "README.md"
Expand All @@ -14,20 +14,20 @@ crate-type = ["cdylib"]

[dependencies]
seed = "0.8.0"
wasm-bindgen = "0.2.68"
binoxxo = { version = "0.4.0", features = ["wasm-bindgen"] }
fluent-bundle = "0.13.1"
wasm-bindgen = "0.2.70"
binoxxo = "0.5.0"
fluent-bundle = "0.14.3"
unic-langid = { version = "0.9.0", features = ["macros"] }
elsa = "1.3.2"
lazy_static = "1.4.0"

# For serialization, eg sending requests to a server. Otherwise, not required.
serde = "1.0.117"
serde_derive = "1.0.117"
serde_json = "1.0.59"
serde = "1.0.123"
serde_derive = "1.0.123"
serde_json = "1.0.61"

[dependencies.web-sys]
version = "^0.3.45"
version = "^0.3.47"
features = [
"Blob",
"Event",
Expand All @@ -39,4 +39,4 @@ features = [
]

[dev-dependencies]
wasm-bindgen-test = "0.3.18"
wasm-bindgen-test = "0.3.20"
2 changes: 1 addition & 1 deletion src/lang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl ResourceManager {

pub fn get_bundle(&self, locale_str: &str) -> FluentBundle<&FluentResource> {
let loc: LanguageIdentifier = locale_str.parse().expect("invalid locale string");
let mut bundle = FluentBundle::new(&[loc]);
let mut bundle = FluentBundle::new(vec![loc]);
let res = self.get_resource(locale_str);
bundle
.add_resource(res)
Expand Down

0 comments on commit f00b70c

Please sign in to comment.