Skip to content

Commit

Permalink
feat: initial public SDK release
Browse files Browse the repository at this point in the history
  • Loading branch information
dogun-anduril committed Dec 1, 2024
0 parents commit 8fade97
Show file tree
Hide file tree
Showing 29 changed files with 69,139 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @anduril/lattice-sdk-maintainers
21 changes: 21 additions & 0 deletions .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Lint commit"

on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
permissions:
pull-requests: read
jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
requireScope: false
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release
on:
push:
branches:
- master

permissions:
contents: read

# Only allow one release workflow to execute at a time, since each release
# workflow uses shared resources (git tags, package registries)
concurrency:
group: ${{ github.workflow }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install dependencies
run: |
cargo install cargo-edit
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 24.2.0
extra_plugins: |
@semantic-release/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_API_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target
Cargo.lock
11 changes: 11 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugins: [
"@semantic-release/commit-analyzer",
'@semantic-release/release-notes-generator',
"@semantic-release/github",
[
"@semantic-release/exec", {
"prepareCmd": "cargo set-version ${nextRelease.version}",
"publishCmd": "cargo publish --token ${process.env.CARGO_API_TOKEN} --allow-dirty --dry-run"
},
]
]
21 changes: 21 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "anduril-lattice-sdk"
description = "Anduril's Lattice SDK for interacting with Lattice APIs"
homepage = "anduril.com"
documentation = "docs.anduril.com"
repository = "https://github.com/anduril/lattice-sdk-rust"
version = "1.0.0"
edition = "2021"
license-file = "LICENSE.md"

[dependencies]
bytes = "1.7.1"
prost = "0.13.1"
pbjson = "0.7"
pbjson-types = "0.7"
serde = "1.0.204"
tonic = { version = "0.12.1", features = ["gzip"] }

[lib]
crate-type = ["lib"]
path = "src/mod.rs"
188 changes: 188 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Lattice SDK Rust

[![Version](https://img.shields.io/crates/v/anduril-lattice-sdk.svg)](https://crates.io/crates/anduril-lattice-sdk)

The official [Anduril](https://www.anduril.com/) Lattice SDK for Rust.

## Documentation

See the documentation for [Lattice Rust SDK](https://docs.anduril.com/sdks/rust).

## Requirements

To use the SDK please ensure you have the following installed:

* [Rust](https://www.rust-lang.org/tools/install)

## Installation

Install the Lattice SDK package with:

```
cargo add anduril-lattice-sdk
```

## Support

For support with this library please [file an issue](https://github.com/anduril/lattice-sdk-rust/issues/new) or reach out to your Anduril representative.
5 changes: 5 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Security Policy

## Reporting a Vulnerability

Please report any security issues to the Anduril Information Security team using the email [email protected]. Additional information including our pgp key can be found in the [security.txt page](https://www.anduril.com/.well-known/security.txt) of our website.
Loading

0 comments on commit 8fade97

Please sign in to comment.