home.social

#crates_io — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #crates_io, aggregated by home.social.

fetched live
  1. Killer @forgejo feature: project's registry.

    (also applies to @gitea and @Codeberg )

    If you don't want to support gatekeeping of through

    github.com/rust-lang/crates.io

    then just set up your independent source!

    forgejo.org/docs/latest/user/p

    Kudos for implementing this.

  2. Published my first crate to crates.io recently. Nothing fancy, a simple #Axum layer for caching HTTP responses – with the option to reuse a stale response in case of failure to produce a new successful one – written for a project at work. Maybe someone else will find it useful. :)

    crates.io/crates/axum-response

    (I’ve been doing Rust for years, a bit ashamed I’d never published any open crate before; even if I’ve some small contributions to other projects)

    #RustLang #Rust #crates_io

  3. 🔧 #code2prompt: A command-line tool for converting codebases to #LLM prompts

    Key features:
    • 📁 Generates well-formatted #Markdown prompts with source tree structure
    • 🛠️ Customizable #Handlebars templates for versatile prompt generation
    • 🔍 Respects .gitignore and supports file filtering with glob patterns
    • 🔢 Displays token count using various #tokenizers (cl100k, p50k, r50k_base)
    • 📊 #Git diff integration for commit messages and #PullRequest descriptions
    • 📋 Automatic clipboard copy and option to save output to file

    Additional capabilities:
    • 🔢 Line numbering for source code blocks
    • 🔀 JSON output option for structured data
    • 🚫 Exclusion of files/folders from source tree
    • 📝 Support for user-defined variables in templates

    #opensource project written in #Rust, available on #crates_io and #AUR

    Useful for:
    • Quick #LLM prompt generation from codebases
    • Code documentation and analysis
    • Bug finding and security vulnerability assessment
    • Performance optimization suggestions

    github.com/mufeedvh/code2promp

  4. 🔧 #code2prompt: A command-line tool for converting codebases to #LLM prompts

    Key features:
    • 📁 Generates well-formatted #Markdown prompts with source tree structure
    • 🛠️ Customizable #Handlebars templates for versatile prompt generation
    • 🔍 Respects .gitignore and supports file filtering with glob patterns
    • 🔢 Displays token count using various #tokenizers (cl100k, p50k, r50k_base)
    • 📊 #Git diff integration for commit messages and #PullRequest descriptions
    • 📋 Automatic clipboard copy and option to save output to file

    Additional capabilities:
    • 🔢 Line numbering for source code blocks
    • 🔀 JSON output option for structured data
    • 🚫 Exclusion of files/folders from source tree
    • 📝 Support for user-defined variables in templates

    #opensource project written in #Rust, available on #crates_io and #AUR

    Useful for:
    • Quick #LLM prompt generation from codebases
    • Code documentation and analysis
    • Bug finding and security vulnerability assessment
    • Performance optimization suggestions

    github.com/mufeedvh/code2promp