From a9c94adf0bd32438c894b813d80a0d3d23ecf78c Mon Sep 17 00:00:00 2001 From: Tom Hicks Date: Sun, 23 Aug 2026 04:25:13 -0700 Subject: [PATCH] Creates empty cli and lib targets and configures git ignore rules. --- .editorconfig | 20 ++++++++++++++++++ .gitignore | 42 +++++++++++++++++++++++++++++++++++++ .idea/.gitignore | 10 +++++++++ .idea/modules.xml | 8 +++++++ .idea/vcs.xml | 6 ++++++ Cargo.toml | 6 ++++++ Tasks.md | 8 +++---- cli/Cargo.toml | 6 ++++++ cli/src/main.rs | 3 +++ nextcloud_client/Cargo.toml | 6 ++++++ nextcloud_client/src/lib.rs | 14 +++++++++++++ 11 files changed, 125 insertions(+), 4 deletions(-) create mode 100644 .editorconfig create mode 100644 .idea/.gitignore create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 Cargo.toml create mode 100644 cli/Cargo.toml create mode 100644 cli/src/main.rs create mode 100644 nextcloud_client/Cargo.toml create mode 100644 nextcloud_client/src/lib.rs diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..92f53d4 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,20 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.{json,yaml,yml}] +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false +indent_size = 2 + +[Makefile] +indent_style = tab diff --git a/.gitignore b/.gitignore index e69de29..a63b308 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,42 @@ +# Rust build artifacts +/target/ +**/target/ +**/*.rs.bk + +# Cargo local configs +.cargo/config.toml.local + +# Tauri & frontend artifacts +node_modules/ +**/dist/ +**/build/ + +# JetBrains / RustRover / IntelliJ +.idea/workspace.xml +.idea/shelf/ +.idea/dataSources/ +.idea/dataSources.local.xml +.idea/httpRequests/ +.idea/queries/ +*.iml + +# Visual Studio Code +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +# OS specific files +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db + +# Local environment & secret files +.env +.env.* +*.local diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..30cf57e --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..973a5c6 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..1c600d1 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[workspace] +members = [ + "nextcloud_client", + "cli", +] +resolver = "3" diff --git a/Tasks.md b/Tasks.md index e1328a9..6b752af 100644 --- a/Tasks.md +++ b/Tasks.md @@ -69,7 +69,7 @@ This document defines the complete project roadmap and task tracking system for | ID | Title | Status | Type | |---|---|---|---| -| [NUT-001](#nut-001) | Establish Repository Structure | Pending | Foundation | +| [NUT-001](#nut-001) | Establish Repository Structure | In Progress | Foundation | | [NUT-002](#nut-002) | Implement Shared Rust Backend Library | Triage | Foundation | | [NUT-003](#nut-003) | Implement WebDAV Upload Logic | Triage | Feature | | [NUT-004](#nut-004) | Implement OCS Share Link Generation | Triage | Feature | @@ -95,10 +95,10 @@ This document defines the complete project roadmap and task tracking system for ## Detailed Tasks - + ### Establish Repository Structure **ID:** NUT-001 -**Status:** Pending +**Status:** In Progress **Type:** Foundation **Description:** @@ -522,7 +522,7 @@ Tasks progress through defined statuses: - **Task ID Schema**: `${project.prefix}-XXX` where `XXX` is a zero-padded monotonic 3-digit number (e.g. `NUT-001`). - IDs must be monotonic and never renumbered or reused. -- Anchor IDs are lowercase: ``. +- Anchor IDs are lowercase: ``. - Table and header IDs are uppercase: `[NUT-001](#nut-001)`. - Dependencies list **direct dependencies only** (no transitive dependencies). - Checklists must use standard GitHub Markdown `- [ ]` and `- [x]`. diff --git a/cli/Cargo.toml b/cli/Cargo.toml new file mode 100644 index 0000000..f29c75d --- /dev/null +++ b/cli/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "nut" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/cli/src/main.rs b/cli/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/cli/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/nextcloud_client/Cargo.toml b/nextcloud_client/Cargo.toml new file mode 100644 index 0000000..ba8f034 --- /dev/null +++ b/nextcloud_client/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "nextcloud_client" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/nextcloud_client/src/lib.rs b/nextcloud_client/src/lib.rs new file mode 100644 index 0000000..b93cf3f --- /dev/null +++ b/nextcloud_client/src/lib.rs @@ -0,0 +1,14 @@ +pub fn add(left: u64, right: u64) -> u64 { + left + right +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn it_works() { + let result = add(2, 2); + assert_eq!(result, 4); + } +}