summaryrefslogtreecommitdiffstats
path: root/rust/wolfree_download_dependencies
diff options
context:
space:
mode:
authorname <email@example.com>2023-09-27 13:34:23 +0200
committername <email@example.com>2023-09-27 13:34:23 +0200
commit72d8b4e6bee0ffac79e96dd649a9da2adb86b507 (patch)
tree8d1f37e5d88a598675b1a65128c35323c99825f5 /rust/wolfree_download_dependencies
parentMerge pull request 'Please consider adding my instance' (#2) from superprivacy/wolfree-dockerfile:main into main (diff)
downloadwolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.tar
wolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.tar.gz
wolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.tar.bz2
wolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.tar.lz
wolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.tar.xz
wolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.tar.zst
wolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.zip
Diffstat (limited to 'rust/wolfree_download_dependencies')
-rw-r--r--rust/wolfree_download_dependencies/Cargo.toml20
-rw-r--r--rust/wolfree_download_dependencies/src/main.rs22
2 files changed, 42 insertions, 0 deletions
diff --git a/rust/wolfree_download_dependencies/Cargo.toml b/rust/wolfree_download_dependencies/Cargo.toml
new file mode 100644
index 0000000..a76607d
--- /dev/null
+++ b/rust/wolfree_download_dependencies/Cargo.toml
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+[package]
+name = "wolfree_download_dependencies"
+version = "2023.8.31"
+authors = [
+ "See the commit history of the Git repositories.",
+ "https://git.kiwifarms.net/wolfree",
+]
+categories = ["development-tools::build-utils"]
+edition = "2021"
+keywords = ["Wolfree", "Docker", "download", "compile", "dependency"]
+license = "AGPL-3.0-or-later"
+readme = "README.md"
+repository = "https://git.kiwifarms.net/wolfree"
+description = "Download and compile dependencies."
+
+[dependencies]
+regex = "1"
+walkdir = "2"
diff --git a/rust/wolfree_download_dependencies/src/main.rs b/rust/wolfree_download_dependencies/src/main.rs
new file mode 100644
index 0000000..9fdc1ab
--- /dev/null
+++ b/rust/wolfree_download_dependencies/src/main.rs
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: AGPL-3.0-or-later */
+
+//! rust - Can Cargo download and build dependencies without also building the application? - Stack Overflow
+//! <https://stackoverflow.com/questions/42130132/can-cargo-download-and-build-dependencies-without-also-building-the-application>
+//!
+//! cargo build --dependencies-only · Issue #2644 · rust-lang/cargo · GitHub
+//! <https://github.com/rust-lang/cargo/issues/2644>
+
+#![allow(clippy::blanket_clippy_restriction_lints)]
+#![allow(clippy::implicit_return)]
+#![allow(clippy::question_mark_used)]
+
+use regex::Regex;
+use std::error;
+use walkdir::WalkDir;
+
+/// Entry point of the program.
+fn main() -> Result<(), Box<dyn error::Error>> {
+ let _: Regex = Regex::new("")?;
+ let _: WalkDir = WalkDir::new("");
+ Ok(())
+}