{"id":22694630,"url":"https://github.com/sachs7/rusties","last_synced_at":"2025-03-29T17:26:38.315Z","repository":{"id":240109288,"uuid":"801279871","full_name":"sachs7/rusties","owner":"sachs7","description":"Basic Rust library and its usage","archived":false,"fork":false,"pushed_at":"2024-05-20T19:07:08.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T18:42:09.032Z","etag":null,"topics":["duke-university","learning","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sachs7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-15T23:39:22.000Z","updated_at":"2024-05-20T19:07:11.000Z","dependencies_parsed_at":"2024-05-16T19:52:07.628Z","dependency_job_id":"a9d9c454-1b8c-43d5-9c38-024f3cc89d0c","html_url":"https://github.com/sachs7/rusties","commit_stats":null,"previous_names":["sachs7/rusties"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachs7%2Frusties","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachs7%2Frusties/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachs7%2Frusties/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachs7%2Frusties/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sachs7","download_url":"https://codeload.github.com/sachs7/rusties/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246217989,"owners_count":20742296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["duke-university","learning","rust","rust-lang"],"created_at":"2024-12-10T03:08:58.837Z","updated_at":"2025-03-29T17:26:38.295Z","avatar_url":"https://github.com/sachs7.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rusties\n\nBasic Rust library and its usage\n\n### Folder Structure\n```\n.\nCargo.toml -- Holds project dependencies\nsrc -\n | - cli.rs -- CLI menu\n | - main.rs -- Entry point of the CLI app\n\nrusty_libby -\n | - Cargo.toml -- Holds library dependencies\n | - src\n      | - _all files specific to `math` and `word`\n```\n\n# How to run and sample output\n\nRun: `cargo run --release` -- this will create a `target/release` folder.\n\nExecute the following commands:\n\n```\n➜  rusties git:(main) ✗ target/release/rusties help\n            \nRusty Libby 0.1.0\nA command line app written in Rust that supports Math and String operations.\n\nUSAGE:\n    rusties \u003cSUBCOMMAND\u003e\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nSUBCOMMANDS:\n    help    Prints this message or the help of the given subcommand(s)\n    math    Math operations like Factorial, Fibonacci, and Prime number check\n    word    String operations like Palindrome and Reverse string\n```\n\n## Math functions:\n\n#### Help menu:\n\n```\n➜  rusties git:(main) ✗ target/release/rusties math --help     \nrusties-math 0.1.0\n\nUSAGE:\n    rusties math \u003cSUBCOMMAND\u003e\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nSUBCOMMANDS:\n    factorial       Factorial of a number\n    fibonacci       Fibonacci of a number\n    help            Prints this message or the help of the given subcommand(s)\n    prime-or-not    Prime number check\n```\n\n#### Factorial:\n\n```\n➜  rusties git:(main) ✗ target/release/rusties math factorial 4\nFactorial of 4 is Factorial of 4 is 24\n```\n\n## Word functions:\n\n#### Help menu:\n\n```\n➜  rusties git:(main) ✗ target/release/rusties word --help               \nrusties-word 0.1.0\n\nUSAGE:\n    rusties word \u003cSUBCOMMAND\u003e\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nSUBCOMMANDS:\n    help              Prints this message or the help of the given subcommand(s)\n    palindrome        Check if a word is a palindrome\n    reverse-string    Reverse a string\n```\n\n#### Palindrome:\n\n```\n➜  rusties git:(main) ✗ target/release/rusties word palindrome madam\nmadam is a palindrome\n\n➜  rusties git:(main) ✗ target/release/rusties word palindrome list \nlist is not a palindrome\n```\n\n# Documentation Tests\n\n```\n➜  rusty_libby git:(main) ✗ cargo test\n   Compiling rusty_libby v0.1.0 (/rusty_libby)\n    Finished test [unoptimized + debuginfo] target(s) in 1.17s\n     Running unittests src/lib.rs (target/debug/deps/rusty_libby-382d9f360a4a4dc8)\n\nrunning 0 tests\n\ntest result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s\n\n   Doc-tests rusty_libby\n\nrunning 6 tests\ntest src/fibonacci.rs - fibonacci::fmt (line 9) ... ok\ntest src/palindrome.rs - palindrome::Palindrome (line 16) ... ok\ntest src/prime_or_not.rs - prime_or_not::fmt (line 9) ... ok\ntest src/factorial.rs - factorial::fmt (line 9) ... ok\ntest src/reverse_string.rs - reverse_string::ReverseString (line 9) ... ok\ntest src/palindrome.rs - palindrome::Palindrome (line 9) ... ok\n\ntest result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.02s\n\n➜  rusty_libby git:(main) ✗ \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachs7%2Frusties","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsachs7%2Frusties","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachs7%2Frusties/lists"}