{"id":28734676,"url":"https://github.com/rodmoioliveira/collatz","last_synced_at":"2025-10-17T01:56:34.494Z","repository":{"id":202654147,"uuid":"707341039","full_name":"rodmoioliveira/collatz","owner":"rodmoioliveira","description":"collatz is a CLI for printing the hailstone sequence of a number.","archived":false,"fork":false,"pushed_at":"2025-09-25T13:12:09.000Z","size":215,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T15:25:23.006Z","etag":null,"topics":["collatz-algorithm","collatz-conjecture","collatz-problem","collatz-sequences","hailstone-numbers","hailstone-sequence","hailstone-series"],"latest_commit_sha":null,"homepage":"https://rodmoioliveira.github.io/collatz/","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/rodmoioliveira.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-19T17:39:39.000Z","updated_at":"2025-09-25T13:12:13.000Z","dependencies_parsed_at":"2024-01-24T21:24:21.281Z","dependency_job_id":"e131bb26-ae2b-4e39-af31-34a74b04caab","html_url":"https://github.com/rodmoioliveira/collatz","commit_stats":null,"previous_names":["rodmoioliveira/collatz"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/rodmoioliveira/collatz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodmoioliveira%2Fcollatz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodmoioliveira%2Fcollatz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodmoioliveira%2Fcollatz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodmoioliveira%2Fcollatz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodmoioliveira","download_url":"https://codeload.github.com/rodmoioliveira/collatz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodmoioliveira%2Fcollatz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279269892,"owners_count":26137639,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["collatz-algorithm","collatz-conjecture","collatz-problem","collatz-sequences","hailstone-numbers","hailstone-sequence","hailstone-series"],"created_at":"2025-06-15T23:32:32.630Z","updated_at":"2025-10-17T01:56:34.489Z","avatar_url":"https://github.com/rodmoioliveira.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# collatz\n\ncollatz is a CLI for printing the [hailstone sequence](https://en.wikipedia.org/wiki/Collatz_conjecture) of a number.\n\n[![Build status](https://github.com/rodmoioliveira/collatz/workflows/ci/badge.svg)](https://github.com/rodmoioliveira/collatz/actions)\n[![GitHub Release](https://img.shields.io/github/v/release/rodmoioliveira/collatz)](https://github.com/rodmoioliveira/collatz/releases)\n\n# index\n\n- [Installation](#installation)\n- [Building](#building)\n- [Usage](#usage)\n- [Dependencies](#dependencies)\n- [Make Recipes](#make-recipes)\n- [How to Release](#how-to-release)\n\n# Installation\n\n[back^](#index)\n\nArchives of [precompiled binaries](https://github.com/rodmoioliveira/collatz/releases)\nfor `collatz` are available for Windows, macOS and Linux.\n\n# Building\n\n[back^](#index)\n\n`collatz` is written in Rust, so you'll need to grab a [Rust installation](https://www.rust-lang.org/tools/install)\nin order to compile it. To build `collatz`, run:\n\n```\ngit clone git@github.com:rodmoioliveira/collatz.git\ncd collatz\nmake rs-build\n```\n\n# Usage\n\n[back^](#index)\n\n```\ncollatz --help\n\nPrints the hailstone sequence of a number\n\nUsage: collatz \u003cNUMBER\u003e\n\nArguments:\n  \u003cNUMBER\u003e\n          A positive integer between 0 and 340282366920938463463374607431768211455\n\nOptions:\n  -h, --help\n          Print help (see a summary with '-h')\n\n  -V, --version\n          Print version\n```\n\n# Dependencies\n\n[back^](#index)\n\n- [clap](https://crates.io/crates/clap) - A simple to use, efficient, and full-featured Command Line Argument Parser\n- [clap_complete](https://crates.io/crates/clap_complete) - Generate shell completion scripts for your clap::Command\n- [libc](https://crates.io/crates/libc) - Raw FFI bindings to platform libraries like libc.\n- [num](https://crates.io/crates/num) - A collection of numeric types and traits for Rust, including bigint,\n\n# Make Recipes\n\n[back^](#index)\n\n```\nbash-all               Run all bash tests\nbash-check             Check format bash code\nbash-deps              Install bash dependencies\nbash-fmt               Format bash code\nbash-lint              Check lint bash code\ncomments-tidy          Tidy comments within code\ndoc-changelog          Write CHANGELOG.md\ndoc-readme             Write README.md\ndprint-check           Dprint check\ndprint-fmt             Dprint format\nhelp                   Display this help screen\nmakefile-descriptions  Check if all Makefile rules have descriptions\nrs-audit               Audit Cargo.lock\nrs-audit-fix           Update Cargo.toml to fix vulnerable dependency requirement\nrs-build               Build binary\nrs-cargo-deps          Install cargo dependencies\nrs-check               Run check\nrs-dev                 Run check in watch mode\nrs-doc                 Open app documentation\nrs-fix                 Fix rust code\nrs-fmt                 Format rust code\nrs-fmt-fix             Format fix rust code\nrs-install             Install binary\nrs-lint                Lint rust code\nrs-lint-fix            Fix lint rust code\nrs-outdated            Display when dependencies are out of date\nrs-tests               Run tests\nrs-uninstall           Uninstall binary\nrs-update-cargo        Update dependencies\nrs-update-rustup       Update rust\ntypos                  Check typos\ntypos-fix              Fix typos\n```\n\n# How to Release\n\n[back^](#index)\n\nTo generate a new version, you need to follow these steps:\n\n1. In the `main` branch, you must bump the version inside the `Cargo.toml` file.\n2. Run `make rs-check` so that the version is changed in the `Cargo.lock` file.\n3. Run the command `git add -A \u0026\u0026 git commit -m \"release: bump version\"`.\n4. Run the command `git tag -a \u003cyour.new.version\u003e -m \"version \u003cyour.new.version\u003e\"`.\n5. Run the command `make doc-changelog \u0026\u0026 make doc-readme`.\n6. Run the command `git add -A \u0026\u0026 git commit -m \"release: \u003cyour.new.version\u003e\"`.\n7. Run `git push` to `main`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodmoioliveira%2Fcollatz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodmoioliveira%2Fcollatz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodmoioliveira%2Fcollatz/lists"}