bump(main/cargo-leptos): 0.3.4

This commit is contained in:
termux-pacman-bot
2026-01-29 08:47:58 +00:00
parent edca83754a
commit abffb9ff7f
2 changed files with 2 additions and 76 deletions

View File

@@ -1,74 +0,0 @@
From 21f9b812bf2a2f3a3ded6df1f56764e8f6d5ecd6 Mon Sep 17 00:00:00 2001
From: Konstantin Podsvirov <konstantin@podsvirov.su>
Date: Thu, 27 Nov 2025 23:17:07 +0300
Subject: [PATCH] fix: android support
---
README.md | 2 ++
src/ext/exe.rs | 16 ++++++++++++----
src/ext/util.rs | 2 ++
3 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 6ee75b6..2637f46 100644
--- a/README.md
+++ b/README.md
@@ -83,6 +83,8 @@ install it with the `no_downloads` feature enabled to prevent cargo-leptos from
> `cargo install --features no_downloads --locked cargo-leptos`
+On Android OS cargo-leptos never trying to download any dependencies and you should do it himself.
+
<br/>
## Completions
diff --git a/src/ext/exe.rs b/src/ext/exe.rs
index 30ea097..d91c7b7 100644
--- a/src/ext/exe.rs
+++ b/src/ext/exe.rs
@@ -222,8 +222,12 @@ impl Exe {
let path = if let Some(path) = meta.from_global_path() {
path
- } else if cfg!(feature = "no_downloads") {
- bail!("{} is required but was not found. Please install it using your OS's tool of choice", &meta.name);
+ } else if cfg!(any(feature = "no_downloads", target_os = "android")) {
+ bail!(
+ "{} is required but was not found. {}",
+ &meta.name,
+ &meta.manual
+ );
} else {
meta.cached().await.wrap_err(meta.manual)?
};
@@ -692,8 +696,12 @@ trait Command {
///
async fn exe_meta(&self, target_os: &str, target_arch: &str) -> Result<ExeMeta> {
let version = self.resolve_version().await;
- let url = self.download_url(target_os, target_arch, version.as_str())?;
- let exe = self.executable_name(target_os, target_arch, version.as_str())?;
+ let mut url = String::new();
+ let mut exe = String::new();
+ if cfg!(not(any(feature = "no_downloads", target_os = "android"))) {
+ url = self.download_url(target_os, target_arch, version.as_str())?;
+ exe = self.executable_name(target_os, target_arch, version.as_str())?;
+ }
Ok(ExeMeta {
name: self.name(),
version,
diff --git a/src/ext/util.rs b/src/ext/util.rs
index b9f5fba..b1b24b8 100644
--- a/src/ext/util.rs
+++ b/src/ext/util.rs
@@ -10,6 +10,8 @@ pub fn os_arch() -> Result<(&'static str, &'static str)> {
"macos"
} else if cfg!(target_os = "linux") {
"linux"
+ } else if cfg!(target_os = "android") {
+ "android"
} else {
bail!("unsupported OS")
};
--
2.52.0

View File

@@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/leptos-rs/cargo-leptos
TERMUX_PKG_DESCRIPTION="Build tool for the Rust framework Leptos"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.3.2"
TERMUX_PKG_VERSION="0.3.4"
TERMUX_PKG_SRCURL=https://github.com/leptos-rs/cargo-leptos/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=19da25ae260843ec27fb6e9e869cf5db0bbf6126cced0c1607e707f1b8b916c7
TERMUX_PKG_SHA256=18834ff5de7af988b6bc2268361123c84d62d5287d8038c7eb8d3e5a091ad8ff
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="openssl"
TERMUX_PKG_BUILD_IN_SRC=true