Skip to content

Commit 56913be

Browse files
chaynaborsgrant0417brandonskiser
committed
Source release
Co-authored-by: Grant Gurvis <[email protected]> Co-authored-by: Brandon Kiser <[email protected]>
0 parents  commit 56913be

File tree

2,554 files changed

+403277
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,554 files changed

+403277
-0
lines changed

.crux_template.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### Problem Summary
2+
[Brief summary / description of the problem being solved in the CR] [SIM](Issue Link)
3+
4+
### Changes
5+
1. [What] List different logical changes being added in this CR as individual points and provide "why" so that decision-making is understood
6+
* [Why]
7+
2. [What]
8+
* [Why]
9+
10+
### Relevant Docs
11+
[Wiki/Sage/Design which were related to understand this change]
12+
13+
### Revision History
14+
* Rev 1: Original Version
15+
16+
### Testing
17+
* [Have you functionally verified locally] `Yes/Why not`
18+
* [Are unit test added?] `Yes/Why not`
19+
* [Are integration test added?] `Yes/Why not`
20+
* [Have you run `cargo test` / `pnpm test`?] `Yes/Why not`
21+
22+
### Impact
23+
* Is this backwards compatible? `Yes/No`
24+
* What's the worst case scenario this change can cause in production?
25+
* Will this change require any prerequisites to be executed before deploying. i.e. other CMs to be executed, resources to be created, etc.

.github/workflows/rust.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Rust
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
8+
permissions:
9+
contents: read
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
RUSTFLAGS: -D warnings
14+
15+
jobs:
16+
cargo-clippy:
17+
name: Clippy
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 30
20+
steps:
21+
- uses: actions/checkout@v4
22+
- run: sudo apt-get update && sudo apt-get install -y -qq build-essential pkg-config jq dpkg curl wget zstd cmake clang libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libdbus-1-dev libwebkit2gtk-4.1-dev libjavascriptcoregtk-4.1-dev valac libibus-1.0-dev libglib2.0-dev sqlite3 libxdo-dev protobuf-compiler libfuse2 bash fish zsh shellcheck
23+
- uses: dtolnay/rust-toolchain@stable
24+
id: toolchain
25+
with:
26+
components: clippy
27+
- uses: actions/cache@v4
28+
with:
29+
path: |
30+
~/.cargo/registry/index/
31+
~/.cargo/registry/cache/
32+
~/.cargo/git/db/
33+
target/
34+
key: cargo-clippy-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ steps.toolchain.outputs.cachekey }}
35+
- run: cargo clippy --locked --workspace --color always -- -D warnings
36+
37+
cargo-test:
38+
name: Test
39+
runs-on: ubuntu-latest
40+
timeout-minutes: 30
41+
steps:
42+
- uses: actions/checkout@v4
43+
- run: sudo apt-get update && sudo apt-get install -y -qq build-essential pkg-config jq dpkg curl wget zstd cmake clang libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libdbus-1-dev libwebkit2gtk-4.1-dev libjavascriptcoregtk-4.1-dev valac libibus-1.0-dev libglib2.0-dev sqlite3 libxdo-dev protobuf-compiler libfuse2 bash fish zsh shellcheck
44+
- uses: dtolnay/rust-toolchain@stable
45+
id: toolchain
46+
- uses: actions/cache@v4
47+
with:
48+
path: |
49+
~/.cargo/registry/index/
50+
~/.cargo/registry/cache/
51+
~/.cargo/git/db/
52+
target/
53+
key: cargo-test-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ steps.toolchain.outputs.cachekey }}
54+
- run: cargo build --locked --workspace --tests
55+
- run: cargo test --locked --workspace
56+
57+
cargo-fmt:
58+
name: Fmt
59+
runs-on: ubuntu-latest
60+
timeout-minutes: 30
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: dtolnay/rust-toolchain@nightly
64+
with:
65+
components: rustfmt
66+
- run: cargo fmt --check -- --color always

.github/workflows/typescript.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Typescript
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
run-test:
13+
name: Test
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 30
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Install protobuf compiler
19+
run: sudo apt-get update && sudo apt-get install -y -qq protobuf-compiler
20+
- name: Cache .turbo folder
21+
uses: actions/cache@v4
22+
with:
23+
path: .turbo
24+
key: turbo-${{ runner.os }}-${{ github.sha }}
25+
restore-keys: turbo-${{ runner.os }}-
26+
- name: Install pnpm
27+
uses: pnpm/action-setup@v4
28+
with:
29+
run_install: false
30+
- name: Install Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version-file: package.json
34+
cache: "pnpm"
35+
- name: Install npm dependencies
36+
run: pnpm install --frozen-lockfile
37+
- run: pnpm run build
38+
- run: pnpm run test:ci

.github/workflows/typos.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Typos
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
typos:
13+
name: Spell Check
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 30
16+
steps:
17+
- name: Checkout Actions Repository
18+
uses: actions/checkout@v4
19+
- name: Check spelling
20+
uses: crate-ci/typos@master

.gitignore

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## User settings
2+
xcuserdata/
3+
4+
## gcc Patch
5+
/*.gcno
6+
7+
# Misc
8+
.DS_Store
9+
node_modules/
10+
.eslintcache
11+
yarn-error.log
12+
yarn.lock
13+
package-lock.json
14+
*.info
15+
*.swp
16+
*.swo
17+
*.pending-snap
18+
*.sig
19+
*.asc
20+
coverage/
21+
.turbo
22+
23+
# Python
24+
__pycache__
25+
.venv
26+
27+
# Ignore all compiled protobuf artifacts
28+
**/*.pb.ts
29+
30+
target/
31+
build
32+
.vscode-test/
33+
34+
# ide folders
35+
.vscode/
36+
.fleet/
37+
.idea/
38+
39+
# yarn v2
40+
.pnp.*
41+
.yarn/*
42+
!.yarn/patches
43+
!.yarn/plugins
44+
!.yarn/releases
45+
!.yarn/sdks
46+
!.yarn/versions
47+
48+
.env*
49+
50+
rust-toolchain.toml

.husky/pre-commit

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
pnpm run precommit
5+
pnpm run -r precommit

.lintstagedrc.mjs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export default {
2+
"*.{rs,toml}": () => [
3+
"cargo +nightly fmt --check -- --color always",
4+
"cargo clippy --locked --color always -- -D warnings",
5+
],
6+
"*.proto": () => [
7+
"cd proto && buf lint && buf format --exit-code > /dev/null",
8+
],
9+
"*.py": ["ruff format --check", "ruff check"],
10+
"*.{ts,js,tsx,jsx,mjs}": "prettier --check",
11+
"!(*test*)*": "typos",
12+
};

.mise.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tools]
2+
node = "20"
3+
python = "3.11"

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false
4+
}

.rustfmt.toml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
binop_separator = "Front"
2+
blank_lines_lower_bound = 0
3+
blank_lines_upper_bound = 1
4+
brace_style = "SameLineWhere"
5+
combine_control_expr = true
6+
condense_wildcard_suffixes = false
7+
control_brace_style = "AlwaysSameLine"
8+
edition = "2021"
9+
empty_item_single_line = true
10+
enum_discrim_align_threshold = 30
11+
error_on_line_overflow = false
12+
error_on_unformatted = false
13+
fn_params_layout = "Tall"
14+
fn_single_line = false
15+
force_explicit_abi = true
16+
force_multiline_blocks = false
17+
format_code_in_doc_comments = true
18+
format_generated_files = false
19+
format_macro_matchers = true
20+
format_macro_bodies = true
21+
format_strings = false
22+
hard_tabs = false
23+
hex_literal_case = "Lower"
24+
show_parse_errors = true
25+
imports_indent = "Block"
26+
imports_layout = "Vertical"
27+
indent_style = "Block"
28+
inline_attribute_width = 0
29+
match_arm_blocks = true
30+
match_arm_leading_pipes = "Never"
31+
match_block_trailing_comma = true
32+
merge_derives = true
33+
imports_granularity = "Module"
34+
newline_style = "Unix"
35+
normalize_comments = true
36+
normalize_doc_attributes = true
37+
overflow_delimited_expr = true
38+
remove_nested_parens = true
39+
reorder_impl_items = true
40+
reorder_imports = true
41+
group_imports = "StdExternalCrate"
42+
reorder_modules = true
43+
short_array_element_width_threshold = 10
44+
space_after_colon = true
45+
space_before_colon = false
46+
spaces_around_ranges = false
47+
struct_field_align_threshold = 0
48+
struct_lit_single_line = true
49+
style_edition = "2024"
50+
tab_spaces = 4
51+
trailing_comma = "Vertical"
52+
trailing_semicolon = true
53+
type_punctuation_density = "Wide"
54+
unstable_features = false
55+
use_field_init_shorthand = true
56+
use_try_shorthand = true
57+
where_single_line = false
58+
wrap_comments = true
59+
60+
61+
# Width
62+
max_width = 120
63+
use_small_heuristics = "Default"
64+
comment_width = 100

CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @aws/fig

CODE_OF_CONDUCT.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Code of Conduct
2+
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
3+
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
4+
[email protected] with any additional questions or comments.

CONTRIBUTING.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Contributing Guidelines
2+
3+
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
4+
documentation, we greatly value feedback and contributions from our community.
5+
6+
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
7+
information to effectively respond to your bug report or contribution.
8+
9+
## Reporting Bugs/Feature Requests
10+
11+
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
12+
13+
When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
14+
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
15+
16+
- A reproducible test case or series of steps
17+
- The version of our code being used
18+
- Any modifications you've made relevant to the bug
19+
- Anything unusual about your environment or deployment
20+
21+
## Contributing via Pull Requests
22+
23+
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
24+
25+
1. You are working against the latest source on the _main_ branch.
26+
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
27+
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
28+
29+
To send us a pull request, please:
30+
31+
1. Fork the repository.
32+
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
33+
3. Ensure local tests pass.
34+
4. Commit to your fork using clear commit messages.
35+
5. Send us a pull request, answering any default questions in the pull request interface.
36+
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
37+
38+
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
39+
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
40+
41+
## Finding contributions to work on
42+
43+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.
44+
45+
## Code of Conduct
46+
47+
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
48+
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
49+
[email protected] with any additional questions or comments.
50+
51+
## Security issue notifications
52+
53+
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
54+
55+
## Licensing
56+
57+
This repo is dual licensed under MIT and Apache 2.0 licenses. We will ask you to confirm the licensing of your contribution.

0 commit comments

Comments
 (0)