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
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0

# Default ownership for the repository.
* @agntcy/rustaceans @agntcy/sdk-admins
* @Agent-Card/sdk-rust
15 changes: 8 additions & 7 deletions .github/actions/setup-rust/action.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0

Expand All @@ -6,21 +7,21 @@ name: Setup Environment
description: setup environment to build/test/lint rust applications
inputs:
workspace:
description: 'Cargo workspace to cache'
description: "Cargo workspace to cache"
required: false
default: '.'
default: "."
cache-enabled:
description: 'Enable rust cache'
description: "Enable rust cache"
required: false
default: 'true'
default: "true"
runs:
using: 'composite'
using: "composite"
steps:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0
with:
components: rustc, clippy, rustfmt
rustflags: ''
rustflags: ""
cache: ${{ inputs.cache-enabled }}
cache-workspaces: ${{ inputs.workspace }}
cache-on-failure: false
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
Expand All @@ -31,7 +31,7 @@ jobs:
uses: taiki-e/install-action@6155d2cb312b464292646e69dce00eee78f23151

- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2

- name: Build
run: just build
Expand All @@ -47,7 +47,7 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
Expand All @@ -62,7 +62,7 @@ jobs:
uses: taiki-e/install-action@e5de28abeb52d916c5e5875d54b21a9e738b61ec

- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2

- name: Run coverage
run: |
Expand All @@ -75,7 +75,7 @@ jobs:
} >> "$GITHUB_STEP_SUMMARY"

- name: Upload coverage summary
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: coverage-summary
path: coverage-summary.txt
path: coverage-summary.txt
16 changes: 5 additions & 11 deletions .github/workflows/release-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,21 @@ jobs:
permissions:
contents: write
pull-requests: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0
token: ${{ secrets.AGNTCY_BUILD_BOT_GH_TOKEN }}
- name: Setup Rust
uses: ./.github/actions/setup-rust
- name: Run release-plz
uses: release-plz/action@1528104d2ca23787631a1c1f022abb64b34c1e11 # v0.5.128
uses: release-plz/action@2eb1d8bcb770b4c48ccfaad919734b38b51958c9 # v0.5.131
with:
command: release
manifest_path: ./Cargo.toml
config: ./.release-plz.toml
env:
GITHUB_TOKEN: ${{ secrets.AGNTCY_BUILD_BOT_GH_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

release-crates-pr:
name: Release catalog crates - PR
Expand All @@ -48,18 +45,15 @@ jobs:
cancel-in-progress: false
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0
- name: Setup Rust
uses: ./.github/actions/setup-rust
- name: Run release-plz - PR
uses: release-plz/action@1528104d2ca23787631a1c1f022abb64b34c1e11 # v0.5.128
uses: release-plz/action@2eb1d8bcb770b4c48ccfaad919734b38b51958c9 # v0.5.131
with:
command: release-pr
manifest_path: ./Cargo.toml
config: ./.release-plz.toml
env:
GITHUB_TOKEN: ${{ secrets.AGNTCY_BUILD_BOT_GH_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1 change: 1 addition & 0 deletions .release-plz.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0

Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0

Expand All @@ -13,7 +14,7 @@ resolver = "2"
[workspace.package]
edition = "2024"
license = "Apache-2.0"
repository = "https://github.com/agntcy/ai-catalog-rust"
repository = "https://github.com/Agent-Card/ai-catalog-rust"
rust-version = "1.95"
version = "0.2.0"

Expand Down
2 changes: 1 addition & 1 deletion GOVERNANCE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Governance

This repository is maintained by AGNTCY Contributors.
This repository is maintained by AI-Catalog Contributors.

## Decision Making

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Rust libraries for the [AI Catalog specification](https://ai-catalog.io/).
|---|---|
| Specification | <https://ai-catalog.io/> |
| Upstream repository | <https://github.com/Agent-Card/ai-catalog> |
| Command-line tool | <https://github.com/agntcy/ai-catalog-cli> |
| Command-line tool | <https://github.com/Agent-Card/ai-catalog-cli> |

## Workspace

Expand All @@ -22,7 +22,7 @@ specification. `ai-catalog-oci` is a convenience for distributing catalogs over
existing registry infrastructure; OCI packaging is not part of the spec.

The `ai-catalog` command-line tool lives in
[`agntcy/ai-catalog-cli`](https://github.com/agntcy/ai-catalog-cli) and consumes
[`Agent-Card/ai-catalog-cli`](https://github.com/Agent-Card/ai-catalog-cli) and consumes
these crates from crates.io.

### Conformance levels
Expand Down
1 change: 1 addition & 0 deletions crates/ai-catalog-oci/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/ai-catalog-oci/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
// Copyright AGNTCY Contributors (https://github.com/agntcy)
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/ai-catalog-trust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/ai-catalog-trust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
// Copyright AGNTCY Contributors (https://github.com/agntcy)
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/ai-catalog-validate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/ai-catalog-validate/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
// Copyright AGNTCY Contributors (https://github.com/agntcy)
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/ai-catalog/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/ai-catalog/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
// Copyright AGNTCY Contributors (https://github.com/agntcy)
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/ai-catalog/src/identity.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
// Copyright AGNTCY Contributors (https://github.com/agntcy)
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/ai-catalog/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
// Copyright AGNTCY Contributors (https://github.com/agntcy)
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/ai-catalog/src/model.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
// Copyright AGNTCY Contributors (https://github.com/agntcy)
// SPDX-License-Identifier: Apache-2.0

Expand Down
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0

Expand All @@ -20,4 +21,4 @@ coverage:
toolchain_root="$(dirname "$(dirname "$(rustup which rustc --toolchain "$toolchain")")")"; \
LLVM_COV="$toolchain_root/lib/rustlib/$host/bin/llvm-cov" \
LLVM_PROFDATA="$toolchain_root/lib/rustlib/$host/bin/llvm-profdata" \
cargo llvm-cov --workspace --summary-only
cargo llvm-cov --workspace --summary-only
1 change: 1 addition & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright AI-Catalog Contributors (https://github.com/Agent-Card/ai-catalog-rust)
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0

Expand Down