Killer @forgejo feature: project's #cargo registry.

(also applies to @gitea and @Codeberg )

If you don't want to support #Microsoft gatekeeping of #crates_io through #github

https://github.com/rust-lang/crates.io/issues/326

then just set up your independent source!

https://forgejo.org/docs/latest/user/packages/cargo/

Kudos for implementing this.

#forgejo #gitea #codeberg #git #opensource #freesoftware #rustlang #rust

Non-Github account creation · Issue #326 · rust-lang/crates.io

http://doc.crates.io/crates-io.html says: Acquiring an API token First thing’s first, you’ll need an account on crates.io to acquire an API token. To do so, visit the home page and log in via a Git...

GitHub

I want to eventually publish a project on crates.io, but how do virtual manifests work in regards to publishing on crates.io?

Suppose my project structure looks like this:

```
- /foo/
- /crates/
- /foo/
- /src/
- /Cargo.toml
- /libfoo/
- /src/
- /Cargo.toml
- /Cargo.toml
```

Because I can't put "[package]" in the root Cargo.toml virtual manifest, how would I go about publishing this type of project? I'd like to keep the name of "foo" the same in the workspace and in the root project.

(Please kindly boost so someone can answer my question)

#Rust #RustLang #Cargo #Crates_IO

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. :)

https://crates.io/crates/axum-response-cache

(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

crates.io: Rust Package Registry

🔧 #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

https://github.com/mufeedvh/code2prompt

GitHub - mufeedvh/code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.

A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting. - mufeedvh/code2prompt

GitHub
Interview with Senior Rust Developer

Rust programming languageInterview with a Rust developer with Jester Hartman - aired on © The Rust.Find more Rust opinions under:Full version on paah.vhx.tvP...

YouTube