Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions rust/SYMPOSIUM.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name = "symposium"
crates = ["*"]

[[skills]]
source.path = "."
10 changes: 10 additions & 0 deletions rust/find-crate-source/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: find-crate-source
description: Find sources for a Rust crate from crates.io. Activate this skill to inspect a crate's API.
---

To find the source for a crate, use the `cargo agents` CLI tool available in the PATH:

* `cargo agents crate-info $CRATE_NAME` will give you the source path for the crate, preferring to use the version found in your current package. If the crate is not yet used, it will give you the latest version.
* `cargo agents crate-info $CRATE_NAME --version $VERSION` will give you the source path for a specific version
* `$VERSION` is a semver constraint, so `1.0` will give you something compatible with `1.0`; `=1.0.0` is guaranteed to give you an exact version.
11 changes: 11 additions & 0 deletions rust/rust-best-practice/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: rust-best-practice
description: [Critical] Best practice for Rust coding. Always activate this skill before authoring Rust code or answering questions about Rust.
---

# Important dos and don'ts for working with Rust source code

* Use `cargo add` to add new dependencies or features rather than editing `Cargo.toml` directly
* Before finishing your turn, when editing Rust code:
* Run `cargo fmt` after modifying Rust source files to ensure consistent formatting
* Run tests (most commonly `cargo test --all --workspace`, though some projects may have other commands)
2 changes: 0 additions & 2 deletions symposium.toml

This file was deleted.

Loading