Skip to content

Commit

Permalink
feat(ic-http-gateway): add initial ic-http-gateway library
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanosdev committed May 22, 2024
1 parent 5e194e4 commit 5df7050
Show file tree
Hide file tree
Showing 40 changed files with 6,602 additions and 1,088 deletions.
1 change: 1 addition & 0 deletions .cz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ commitizen:
update_changelog_on_bump: true
version: 0.0.0
version_files:
- Cargo.toml
- packages/http-canister-client/package.json:version
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{rs,toml}]
indent_size = 4
41 changes: 41 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Test

on:
push:
branches:
- main
pull_request:

jobs:
build_and_test_rust:
name: Build and Test Rust
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup DFX
uses: dfinity/setup-dfx@main
with:
dfx-version: 'auto'

- name: Download PocketIC
run: ./scripts/download-pocket-ic.sh

- name: Build Cargo crates
run: cargo build --release

- name: Build canisters
run: dfx build --check

- name: Test Cargo crates
run: POCKET_IC_BIN=$(pwd)/pocket-ic cargo test --all-features

- name: Build Cargo docs
run: cargo doc

- name: Lint Rust
run: cargo clippy --all-targets --all-features

- name: Check Rust formatting
run: cargo fmt --all -- --check
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
node_modules
dist
target/
.dfx/
node_modules/
dist/
pocket-ic
.env

.DS_Store
.idea
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.13.1
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

10 changes: 8 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
node_modules
dist
target/
.dfx/
node_modules/
dist/
pocket-ic
.env

.DS_Store
Loading

0 comments on commit 5df7050

Please sign in to comment.