⬆️ Actualiza versiones de las dependencias

This commit is contained in:
Manuel Cillero 2022-10-13 18:18:08 +02:00
parent 6714473984
commit 3f2f53a8f4
10 changed files with 51 additions and 40 deletions

11
Cargo.toml Normal file
View file

@ -0,0 +1,11 @@
[workspace]
members = [
"pagetop",
"pagetop-admin",
"pagetop-user",
"pagetop-node",
"pagetop-mdbook",
"website",
"drust",
]

View file

@ -19,7 +19,7 @@ features = ["mysql"]
default-features = false default-features = false
[dependencies] [dependencies]
actix-web = "4.1.0" actix-web = "4.2.1"
pagetop-admin = { path = "../pagetop-admin" } pagetop-admin = { path = "../pagetop-admin" }
pagetop-user = { path = "../pagetop-user" } pagetop-user = { path = "../pagetop-user" }
pagetop-node = { path = "../pagetop-node" } pagetop-node = { path = "../pagetop-node" }

View file

@ -15,4 +15,4 @@ license = "Apache-2.0 or MIT"
[dependencies] [dependencies]
pagetop = { path = "../pagetop" } pagetop = { path = "../pagetop" }
maud = { git = "https://github.com/lambda-fairy/maud", rev = "e6787cd6" } maud = "0.24.0"

View file

@ -16,7 +16,7 @@ license = "Apache-2.0 or MIT"
[dependencies] [dependencies]
pagetop = { path = "../pagetop" } pagetop = { path = "../pagetop" }
static-files = "0.2.3" static-files = "0.2.3"
maud = { git = "https://github.com/lambda-fairy/maud", rev = "e6787cd6" } maud = "0.24.0"
[build-dependencies] [build-dependencies]
pagetop = { path = "../pagetop" } pagetop = { path = "../pagetop" }

View file

@ -25,13 +25,13 @@ categories = [
async-trait = "0.1.57" async-trait = "0.1.57"
concat-string = "1.0.1" concat-string = "1.0.1"
doc-comment = "0.3.3" doc-comment = "0.3.3"
figlet-rs = "0.1.3" figlet-rs = "0.1.4"
futures = "0.3.21" futures = "0.3.24"
once_cell = "1.13.0" once_cell = "1.15.0"
paste = "1.0.8" paste = "1.0.9"
substring = "1.4.5" substring = "1.4.5"
term_size = "0.3.2" term_size = "0.3.2"
url = "2.2.2" url = "2.3.1"
config_rs = { package = "config", version = "0.11.0", features = ["toml"] } config_rs = { package = "config", version = "0.11.0", features = ["toml"] }
@ -39,27 +39,27 @@ tracing = "0.1.36"
tracing-appender = "0.2.2" tracing-appender = "0.2.2"
tracing-subscriber = { version = "0.3.15", features = ["json", "env-filter"] } tracing-subscriber = { version = "0.3.15", features = ["json", "env-filter"] }
tracing-unwrap = { version = "0.9.2", default-features = false } tracing-unwrap = { version = "0.9.2", default-features = false }
tracing-actix-web = "0.6.0" tracing-actix-web = "0.6.1"
fluent-templates = "0.7.1" fluent-templates = "0.8.0"
unic-langid = "0.9.0" unic-langid = "0.9.0"
actix-web = "4.1.0" actix-web = "4.2.1"
actix-web-files = { package = "actix-files", version = "0.6.2" } actix-web-files = { package = "actix-files", version = "0.6.2" }
actix-web-static-files = "4.0.0" actix-web-static-files = "4.0.0"
static-files = "0.2.3" static-files = "0.2.3"
maud = { git = "https://github.com/lambda-fairy/maud", rev = "e6787cd6", features = ["actix-web"] } maud = { version = "0.24.0", features = ["actix-web"] }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
[dependencies.sea-orm] [dependencies.sea-orm]
version = "0.9.1" version = "0.9.3"
features = ["debug-print", "macros", "runtime-async-std-native-tls"] features = ["debug-print", "macros", "runtime-async-std-native-tls"]
default-features = false default-features = false
optional = true optional = true
[dependencies.sea-schema] [dependencies.sea-schema]
version = "0.9.3" version = "0.9.4"
optional = true optional = true
[features] [features]
@ -73,7 +73,7 @@ sqlite = ["database", "sea-orm/sqlx-sqlite"]
static-files = "0.2.3" static-files = "0.2.3"
[dev-dependencies] [dev-dependencies]
tokio = { version = "1.20.1", features = ["macros", "rt-multi-thread"] } tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread"] }
[lib] [lib]
name = "pagetop" name = "pagetop"

View file

@ -12,12 +12,16 @@ path = "../pagetop"
features = ["mysql"] features = ["mysql"]
# features = ["postgres"] # features = ["postgres"]
# features = ["sqlite"] # features = ["sqlite"]
# En este caso hay que deshabilitar las características predeterminadas: # En cuyo caso habrá que deshabilitar las características predeterminadas:
default-features = false default-features = false
[dependencies] [dependencies]
actix-web = "4.1.0" actix-web = "4.2.1"
# Si se usa la macro html!: # Para usar la macro html! (opcional):
maud = { git = "https://github.com/lambda-fairy/maud", rev = "e6787cd6" } maud = "0.24.0"
# Si se requiere serialización de estructuras de datos: # Para serializar estructuras de datos (opcional):
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
[build-dependencies]
# Para incluir archivos y recursos binarios en el ejecutable (opcional):
pagetop = { path = "../pagetop" }

View file

@ -8,13 +8,17 @@ edition = "2021"
[dependencies.pagetop] [dependencies.pagetop]
path = "../pagetop" path = "../pagetop"
# Para dar soporte a bases de datos: # Si requiere base de datos:
features = ["database"] features = ["database"]
# En este caso hay que deshabilitar las características predeterminadas: # En cuyo caso habrá que deshabilitar las características predeterminadas:
default-features = false default-features = false
[dependencies] [dependencies]
# Si se usa la macro html!: # Para usar la macro html! (opcional):
maud = { git = "https://github.com/lambda-fairy/maud", rev = "e6787cd6" } maud = "0.24.0"
# Si se requiere serialización de estructuras de datos: # Para serializar estructuras de datos (opcional):
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
[build-dependencies]
# Para incluir archivos y recursos binarios en la propia librería (opcional):
pagetop = { path = "../pagetop" }

View file

@ -22,7 +22,7 @@ macro_rules! localize {
#[allow(dead_code)] #[allow(dead_code)]
fn l(key: &str) -> String { fn l(key: &str) -> String {
LOCALES.lookup(&LANGID, key) LOCALES.lookup(&LANGID, key).unwrap_or(key.to_string())
} }
#[allow(dead_code)] #[allow(dead_code)]
@ -30,7 +30,7 @@ macro_rules! localize {
key: &str, key: &str,
args: &std::collections::HashMap<String, FluentValue> args: &std::collections::HashMap<String, FluentValue>
) -> String { ) -> String {
LOCALES.lookup_with_args(&LANGID, key, args) LOCALES.lookup_with_args(&LANGID, key, args).unwrap_or(key.to_string())
} }
#[allow(dead_code)] #[allow(dead_code)]
@ -39,7 +39,7 @@ macro_rules! localize {
args: &std::collections::HashMap<String, FluentValue> args: &std::collections::HashMap<String, FluentValue>
) -> $crate::html::PreEscaped<String> { ) -> $crate::html::PreEscaped<String> {
$crate::html::PreEscaped( $crate::html::PreEscaped(
LOCALES.lookup_with_args(&LANGID, key, args) LOCALES.lookup_with_args(&LANGID, key, args).unwrap_or(key.to_string())
) )
} }
}; };

View file

@ -17,10 +17,10 @@ license = "Apache-2.0 or MIT"
path = "../pagetop" path = "../pagetop"
[dependencies] [dependencies]
actix-web = "4.1.0" actix-web = "4.2.1"
static-files = "0.2.3" static-files = "0.2.3"
pagetop-mdbook = { path = "../pagetop-mdbook" } pagetop-mdbook = { path = "../pagetop-mdbook" }
maud = { git = "https://github.com/lambda-fairy/maud", rev = "e6787cd6" } maud = "0.24.0"
[build-dependencies] [build-dependencies]
pagetop = { path = "../pagetop" } pagetop = { path = "../pagetop" }

View file

@ -2,14 +2,6 @@ use pagetop::util::bundle_resources;
use pagetop_mdbook::util::except_mdbook_common_resources; use pagetop_mdbook::util::except_mdbook_common_resources;
fn main() -> std::io::Result<()> { fn main() -> std::io::Result<()> {
bundle_resources( bundle_resources("./doc/en", "guides_en", Some(except_mdbook_common_resources))?;
"./static/doc/en", bundle_resources("./doc/es", "guias_es", Some(except_mdbook_common_resources))
"guides_en",
Some(except_mdbook_common_resources),
)?;
bundle_resources(
"./static/doc/es",
"guias_es",
Some(except_mdbook_common_resources),
)
} }