diff --git a/.changeset/calm-points-jump.md b/.changeset/calm-points-jump.md deleted file mode 100644 index d62c41c60..000000000 --- a/.changeset/calm-points-jump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lagon/dashboard': patch ---- - -Fix organization members check diff --git a/.changeset/config.json b/.changeset/config.json index 96a262a5e..a6d5a185d 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -3,18 +3,17 @@ "changelog": [ "@changesets/changelog-github", { - "repo": "lagonapp/lagon" + "repo": "lagossapp/lagoss" } ], "commit": false, - "fixed": [ - [ - "@lagon/runtime", - "@lagon/js-runtime" - ] - ], + "fixed": [["@lagoss/runtime", "@lagoss/js-runtime"]], "linked": [], "access": "public", "baseBranch": "main", - "updateInternalDependencies": "patch" + "updateInternalDependencies": "patch", + "privatePackages": { + "version": true, + "tag": true + } } diff --git a/.changeset/new-snakes-leave.md b/.changeset/new-snakes-leave.md new file mode 100644 index 000000000..2bc1913e7 --- /dev/null +++ b/.changeset/new-snakes-leave.md @@ -0,0 +1,5 @@ +--- +'@lagoss/dashboard': minor +--- + +do not bundle config vars to allow changing with docker env diff --git a/.changeset/ninety-kids-notice.md b/.changeset/ninety-kids-notice.md deleted file mode 100644 index 39029dd7c..000000000 --- a/.changeset/ninety-kids-notice.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lagon/docs': patch ---- - -Add Neon example diff --git a/.changeset/purple-rice-suffer.md b/.changeset/purple-rice-suffer.md new file mode 100644 index 000000000..31d23f6de --- /dev/null +++ b/.changeset/purple-rice-suffer.md @@ -0,0 +1,5 @@ +--- +'@lagoss/ui': minor +--- + +Updated docs to vitepress, added self-hosting instructions and adjusted README diff --git a/.changeset/shiny-plums-yell.md b/.changeset/shiny-plums-yell.md deleted file mode 100644 index 5c50f7086..000000000 --- a/.changeset/shiny-plums-yell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lagon/serverless': patch ---- - -Properly remove Cron functions diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 043408882..000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: [QuiiBz] diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 468db6a7c..4b59babab 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -5,12 +5,10 @@ on: branches: - main tags: - - '@lagon/serverless@*' + - '@lagoss/serverless@*' + - '@lagoss/dashboard@*' pull_request: -env: - DOCKER_HUB_USER: lagonapp - jobs: create-container-image: name: Create "${{matrix.image}}" container image @@ -35,28 +33,20 @@ jobs: uses: docker/metadata-action@v4 with: images: | - ${{ env.DOCKER_HUB_USER }}/${{matrix.image}} ghcr.io/${{ github.repository_owner }}/${{matrix.image}} tags: | - type=ref,event=tag,prefix=@lagon/${{matrix.image}}@ + type=ref,event=tag,prefix=@lagoss/${{matrix.image}}@ type=ref,event=pr type=raw,value=next,enable={{is_default_branch}} - name: Login to ghcr.io registry if: github.event_name != 'pull_request' - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Login to Docker Hub - if: github.event_name != 'pull_request' - uses: docker/login-action@v2 - with: - username: ${{ env.DOCKER_HUB_USER }} - password: ${{ secrets.DOCKER_HUB_TOKEN }} - - name: Build and push uses: docker/build-push-action@v4 if: "!startsWith(github.ref, 'refs/tags/') || contains(github.ref, matrix.image)" # only execute if not tag or tag with specific matrix image diff --git a/.github/workflows/cd.yml b/.github/workflows/release-cli.yml similarity index 82% rename from .github/workflows/cd.yml rename to .github/workflows/release-cli.yml index ee63b7fcd..ba2325bd2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/release-cli.yml @@ -1,17 +1,21 @@ -name: CD +name: Release cli + on: push: tags: - - '@lagon/cli@*' + - '@lagoss/cli@*' workflow_dispatch: + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true + env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + jobs: - artifacts: + release-cli: name: Create Artifact ${{ matrix.target }} (${{ matrix.os }}) runs-on: ${{ matrix.os }} strategy: @@ -20,29 +24,29 @@ jobs: include: - os: ubuntu-20.04 target: x86_64-unknown-linux-gnu - asset_name: lagon-linux-x64 - input: lagon-cli - output: lagon + asset_name: lagoss-linux-x64 + input: lagoss-cli + output: lagoss - os: ubuntu-20.04 target: aarch64-unknown-linux-gnu - asset_name: lagon-linux-arm64 - input: lagon-cli - output: lagon + asset_name: lagoss-linux-arm64 + input: lagoss-cli + output: lagoss - os: macOS-latest target: x86_64-apple-darwin - asset_name: lagon-darwin-x64 - input: lagon-cli - output: lagon + asset_name: lagoss-darwin-x64 + input: lagoss-cli + output: lagoss - os: macOS-latest target: aarch64-apple-darwin - asset_name: lagon-darwin-arm64 - input: lagon-cli - output: lagon + asset_name: lagoss-darwin-arm64 + input: lagoss-cli + output: lagoss - os: windows-2019 target: x86_64-pc-windows-msvc - asset_name: lagon-win-x64 - input: lagon-cli.exe - output: lagon.exe + asset_name: lagoss-win-x64 + input: lagoss-cli.exe + output: lagoss.exe steps: - uses: actions/checkout@v3 with: @@ -74,7 +78,7 @@ jobs: - name: Install dependencies run: pnpm install - name: Build js-runtime - run: pnpm turbo build --filter=@lagon/js-runtime + run: pnpm turbo build --filter=@lagoss/js-runtime - name: Build CLI run: | cd crates/cli && cargo build --release --target ${{ matrix.target }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1bb362eb4..9688d6beb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,14 +1,18 @@ name: Release + on: push: branches: - main + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true + env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + jobs: release: name: Release @@ -34,6 +38,8 @@ jobs: title: 'ci: release' publish: pnpm release env: + # secrets.GITHUB_TOKEN doesn't trigger workflow on automated release + # https://github.com/orgs/community/discussions/26875 GITHUB_TOKEN: ${{ secrets.PAT }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_CONFIG_PROVENANCE: true diff --git a/.github/workflows/ci.yml b/.github/workflows/test.yml similarity index 98% rename from .github/workflows/ci.yml rename to .github/workflows/test.yml index 8caeaa80b..88a2859d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/test.yml @@ -1,15 +1,16 @@ -name: CI +name: Test + on: - push: - branches: - - main pull_request: + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true + env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + jobs: lint: name: Lint @@ -31,6 +32,7 @@ jobs: run: pnpm install - name: Lint run: pnpm lint + test: name: Test runs-on: ubuntu-20.04 @@ -53,6 +55,7 @@ jobs: run: pnpm install - name: Test run: pnpm test + typecheck: name: Typecheck runs-on: ubuntu-20.04 @@ -70,6 +73,7 @@ jobs: run: pnpm install - name: Typecheck run: pnpm typecheck + build: name: Build runs-on: ubuntu-20.04 diff --git a/.github/workflows/wpt.yml b/.github/workflows/wpt.yml index 3573af66f..22de4891e 100644 --- a/.github/workflows/wpt.yml +++ b/.github/workflows/wpt.yml @@ -1,15 +1,16 @@ name: web-platform-tests + on: - push: - branches: - - main pull_request: + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true + env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + jobs: wpt: name: web-platform-tests @@ -28,7 +29,7 @@ jobs: - name: Install dependencies run: pnpm install - name: Build runtime - run: pnpm turbo build --filter=@lagon/js-runtime + run: pnpm turbo build --filter=@lagoss/js-runtime - name: Run wpt-runner run: cd crates/wpt-runner && pnpm start - name: Check if results have changed diff --git a/.gitignore b/.gitignore index 5cb13927c..1be8839dc 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ node_modules/ dist/ build/ coverage/ -.lagon/ +.lagoss/ .turbo/ .cache/ ssl/ diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 5170f45d9..adc8be44b 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -59,8 +59,7 @@ representative at an online or offline event. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported to the community leaders responsible for enforcement at -contact@lagon.app. +reported to the community leaders responsible for enforcement at lagoss[at]ju60.de. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7d269c2c1..1e09c662b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,3 @@ ## Contributing -[See the contributing guide on the documentation](https://docs.lagon.app/contributing) +[See the contributing guide on the documentation](https://docs.lagoss.com/contributing) diff --git a/Cargo.lock b/Cargo.lock index 77f00ad0a..9620d3fe0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,15 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "addr2line" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" +dependencies = [ + "gimli", +] + [[package]] name = "adler" version = "1.0.2" @@ -10,9 +19,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "aead" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c192eb8f11fc081b0fe4259ba5af04217d4e0faddd02417310a927911abd7c8" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" dependencies = [ "crypto-common", "generic-array", @@ -31,9 +40,9 @@ dependencies = [ [[package]] name = "aes-gcm" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "209b47e8954a928e1d72e86eca7000ebb6655fe1436d33eefc2201cad027e237" +checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1" dependencies = [ "aead", "aes", @@ -45,9 +54,9 @@ dependencies = [ [[package]] name = "ahash" -version = "0.7.6" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +checksum = "5a824f2aa7e75a0c98c5a504fceb80649e9c35265d44525b5f94de4771a395cd" dependencies = [ "getrandom", "once_cell", @@ -56,24 +65,31 @@ dependencies = [ [[package]] name = "ahash" -version = "0.8.3" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" +checksum = "91429305e9f0a25f6205c5b8e0d2db09e0708a7a6df0f42212bb56c32c8ac97a" dependencies = [ "cfg-if", "once_cell", "version_check", + "zerocopy", ] [[package]] name = "aho-corasick" -version = "0.7.19" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e" +checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" dependencies = [ "memchr", ] +[[package]] +name = "allocator-api2" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5" + [[package]] name = "android-tzdata" version = "0.1.1" @@ -91,70 +107,69 @@ dependencies = [ [[package]] name = "anstream" -version = "0.3.0" +version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e579a7752471abc2a8268df8b20005e3eadd975f585398f17efcfd8d4927371" +checksum = "d664a92ecae85fd0a7392615844904654d1d5f5514837f471ddef4a057aba1b6" dependencies = [ "anstyle", "anstyle-parse", "anstyle-query", "anstyle-wincon", "colorchoice", - "is-terminal", "utf8parse", ] [[package]] name = "anstyle" -version = "1.0.0" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41ed9a86bf92ae6580e0a31281f65a1b1d867c0cc68d5346e2ae128dddfa6a7d" +checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87" [[package]] name = "anstyle-parse" -version = "0.2.0" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e765fd216e48e067936442276d1d57399e37bce53c264d6fefbe298080cb57ee" +checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.0.0" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b" +checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "anstyle-wincon" -version = "1.0.0" +version = "3.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bcd8291a340dd8ac70e18878bc4501dd7b4ff970cfa21c207d36ece51ea88fd" +checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7" dependencies = [ "anstyle", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "anyhow" -version = "1.0.72" +version = "1.0.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b13c32d80ecc7ab747b80c3784bce54ee8a7a0cc4fbda9bf4cda2cf6fe90854" +checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" [[package]] name = "arrayvec" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" +checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" [[package]] name = "async-compression" -version = "0.4.0" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b0122885821398cc923ece939e24d1056a2384ee719432397fa9db87230ff11" +checksum = "bc2d0cfb2a7388d34f590e76686704c494ed7aaceed62ee1ba35cbf363abc2a5" dependencies = [ "flate2", "futures-core", @@ -182,18 +197,18 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.24", + "syn 2.0.41", ] [[package]] name = "async-trait" -version = "0.1.72" +version = "0.1.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc6dde6e4ed435a4c1ee4e73592f5ba9da2151af10076cc04858746af9352d09" +checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.24", + "syn 2.0.41", ] [[package]] @@ -229,15 +244,15 @@ dependencies = [ "rust-ini", "serde", "thiserror", - "time 0.3.14", + "time", "url", ] [[package]] name = "aws-region" -version = "0.25.1" +version = "0.25.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f92a8af5850d0ea0916ca3e015ab86951ded0bf4b70fd27896e81ae1dfb0af37" +checksum = "42fed2b9fca70f2908268d057a607f2a906f47edbf856ea8587de9038d264e22" dependencies = [ "thiserror", ] @@ -280,6 +295,21 @@ dependencies = [ "tokio", ] +[[package]] +name = "backtrace" +version = "0.3.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" +dependencies = [ + "addr2line", + "cc", + "cfg-if", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", +] + [[package]] name = "base16ct" version = "0.2.0" @@ -288,15 +318,15 @@ checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" [[package]] name = "base64" -version = "0.13.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.0" +version = "0.21.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" +checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9" [[package]] name = "base64ct" @@ -306,9 +336,9 @@ checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "bigdecimal" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aaf33151a6429fe9211d1b276eafdf70cdff28b071e76c0b0e1503221ea3744" +checksum = "a6773ddc0eafc0e509fb60e48dff7f450f8e674a0686ae8605e8d9901bd5eefa" dependencies = [ "num-bigint", "num-integer", @@ -317,11 +347,11 @@ dependencies = [ [[package]] name = "bindgen" -version = "0.59.2" +version = "0.69.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bd2a9a458e8f4304c52c43ebb0cfbd520289f8379a52e329a38afda99bf8eb8" +checksum = "9ffcebc3849946a7170a05992aac39da343a90676ab392c51a4280981d6379c2" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.4.1", "cexpr", "clang-sys", "lazy_static", @@ -332,6 +362,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", + "syn 2.0.41", ] [[package]] @@ -342,9 +373,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.3.1" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6776fc96284a0bb647b615056fc496d1fe1644a7ab01829818a6d91cae888b84" +checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" [[package]] name = "bitvec" @@ -360,9 +391,9 @@ dependencies = [ [[package]] name = "block-buffer" -version = "0.10.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ "generic-array", ] @@ -378,47 +409,26 @@ dependencies = [ [[package]] name = "borsh" -version = "0.10.3" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4114279215a005bc675e386011e594e1d9b800918cea18fcadadcce864a2046b" +checksum = "9897ef0f1bd2362169de6d7e436ea2237dc1085d7d1e4db75f4be34d86f309d1" dependencies = [ "borsh-derive", - "hashbrown 0.13.2", + "cfg_aliases", ] [[package]] name = "borsh-derive" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0754613691538d51f329cce9af41d7b7ca150bc973056f1156611489475f54f7" -dependencies = [ - "borsh-derive-internal", - "borsh-schema-derive-internal", - "proc-macro-crate 0.1.5", - "proc-macro2", - "syn 1.0.98", -] - -[[package]] -name = "borsh-derive-internal" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afb438156919598d2c7bad7e1c0adf3d26ed3840dbc010db1a882a65583ca2fb" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.98", -] - -[[package]] -name = "borsh-schema-derive-internal" -version = "0.10.3" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634205cc43f74a1b9046ef87c4540ebda95696ec0f315024860cad7c5b0f5ccd" +checksum = "478b41ff04256c5c8330f3dfdaaae2a5cc976a8e75088bafa4625b0d0208de8c" dependencies = [ + "once_cell", + "proc-macro-crate 2.0.0", "proc-macro2", "quote", - "syn 1.0.98", + "syn 2.0.41", + "syn_derive", ] [[package]] @@ -429,14 +439,14 @@ checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223" dependencies = [ "lazy_static", "memchr", - "regex-automata", + "regex-automata 0.1.10", ] [[package]] name = "bstr" -version = "1.4.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d4260bcc2e8fc9df1eac4919a720effeb63a3f0952f5bf4944adfa18897f09" +checksum = "542f33a8835a0884b006a0c3df3dadd99c0c3f296ed26c2fdc8028e01ad6230c" dependencies = [ "memchr", ] @@ -449,15 +459,15 @@ checksum = "40e38929add23cdf8a366df9b0e088953150724bcbe5fc330b0d8eb3b328eec8" [[package]] name = "bumpalo" -version = "3.11.0" +version = "3.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1ad822118d20d2c234f427000d5acc36eabe1e29a348c89b63dd60b13f28e5d" +checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" [[package]] name = "bytecheck" -version = "0.6.10" +version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13fe11640a23eb24562225322cd3e452b93a3d4091d62fab69c70542fcd17d1f" +checksum = "8b6372023ac861f6e6dc89c8344a8f398fb42aaba2b5dbc649ca0c0e9dbcb627" dependencies = [ "bytecheck_derive", "ptr_meta", @@ -466,26 +476,26 @@ dependencies = [ [[package]] name = "bytecheck_derive" -version = "0.6.10" +version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e31225543cb46f81a7e224762764f4a6a0f097b1db0b175f69e8065efaa42de5" +checksum = "a7ec4c6f261935ad534c0c22dbef2201b45918860eb1c574b972bd213a76af61" dependencies = [ "proc-macro2", "quote", - "syn 1.0.98", + "syn 1.0.109", ] [[package]] name = "byteorder" -version = "1.4.3" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" +checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" [[package]] name = "cbc" @@ -498,9 +508,12 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.73" +version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" +checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" +dependencies = [ + "libc", +] [[package]] name = "cesu8" @@ -523,27 +536,32 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cfg_aliases" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" + [[package]] name = "chrono" -version = "0.4.26" +version = "0.4.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" +checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38" dependencies = [ "android-tzdata", "iana-time-zone", "js-sys", "num-traits", "serde", - "time 0.1.44", "wasm-bindgen", - "winapi", + "windows-targets 0.48.5", ] [[package]] name = "cipher" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1873270f8f7942c191139cb8a40fd228da6c3fd2fc376d7e92d47aa14aeb59e" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ "crypto-common", "inout", @@ -551,9 +569,9 @@ dependencies = [ [[package]] name = "clang-sys" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77ed9a53e5d4d9c573ae844bfac6872b159cb1d1585a83b29e7a64b7eef7332a" +checksum = "c688fc74432808e3eb684cae8830a86be1d66a2bd58e1f248ed0960a590baf6f" dependencies = [ "glob", "libc", @@ -562,20 +580,19 @@ dependencies = [ [[package]] name = "clap" -version = "4.3.19" +version = "4.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fd304a20bff958a57f04c4e96a2e7594cc4490a0e809cbd48bb6437edaa452d" +checksum = "bfaff671f6b22ca62406885ece523383b9b64022e341e53e009a62ebc47a45f2" dependencies = [ "clap_builder", "clap_derive", - "once_cell", ] [[package]] name = "clap_builder" -version = "4.3.19" +version = "4.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01c6a3f08f1fe5662a35cfe393aec09c4df95f60ee93b7556505260f75eee9e1" +checksum = "a216b506622bb1d316cd51328dce24e07bdff4a6128a47c7e7fad11878d5adbb" dependencies = [ "anstream", "anstyle", @@ -585,29 +602,29 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.3.12" +version = "4.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54a9bb5758fc5dfe728d1019941681eccaf0cf8a4189b692a0ee2f2ecf90a050" +checksum = "cf9804afaaf59a91e75b022a30fb7229a7901f60c755489cc61c9b423b836442" dependencies = [ - "heck 0.4.0", + "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.24", + "syn 2.0.41", ] [[package]] name = "clap_lex" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b" +checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1" [[package]] name = "clickhouse" -version = "0.11.5" +version = "0.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33816ee1fea4f60d97abfeb773b9b566ae85f8bfa891758d00a1fb1e5a606591" +checksum = "a0875e527e299fc5f4faba42870bf199a39ab0bb2dbba1b8aef0a2151451130f" dependencies = [ - "bstr 1.4.0", + "bstr 1.8.0", "bytes", "clickhouse-derive", "clickhouse-rs-cityhash-sys", @@ -632,7 +649,7 @@ dependencies = [ "proc-macro2", "quote", "serde_derive_internals", - "syn 1.0.98", + "syn 1.0.109", ] [[package]] @@ -646,9 +663,9 @@ dependencies = [ [[package]] name = "cmake" -version = "0.1.49" +version = "0.1.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db34956e100b30725f2eb215f90d4871051239535632f84fea3bc92722c66b7c" +checksum = "a31c789563b815f77f4250caee12365734369f942439b7defd71e18a48197130" dependencies = [ "cc", ] @@ -684,15 +701,15 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.9.2" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "520fbf3c07483f94e3e3ca9d0cfd913d7718ef2483d2cfd91c0d9e91474ab913" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" [[package]] name = "core-foundation" -version = "0.9.3" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" dependencies = [ "core-foundation-sys", "libc", @@ -700,15 +717,15 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.3" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" +checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" [[package]] name = "cpufeatures" -version = "0.2.5" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320" +checksum = "ce420fe07aecd3e67c5f910618fe65e94158f6dcc0adf44e00d69ce2bdfe0fd0" dependencies = [ "libc", ] @@ -749,9 +766,9 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.6" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" +checksum = "14c3242926edf34aec4ac3a77108ad4854bffaa2e4ddc1824124ce59231302d5" dependencies = [ "cfg-if", "crossbeam-utils", @@ -759,9 +776,9 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" +checksum = "fca89a0e215bab21874660c67903c5f143333cab1da83d041c7ded6053774751" dependencies = [ "cfg-if", "crossbeam-epoch", @@ -770,23 +787,21 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.10" +version = "0.9.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "045ebe27666471bb549370b4b0b3e51b07f56325befa4284db65fc89c02511b1" +checksum = "2d2fe95351b870527a5d09bf563ed3c97c0cffb87cf1c78a591bf48bb218d9aa" dependencies = [ "autocfg", "cfg-if", "crossbeam-utils", "memoffset", - "once_cell", - "scopeguard", ] [[package]] name = "crossbeam-queue" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1cfb3ea8a53f37c40dea2c7bedcbd88bdfae54f5e2175d6ecaff1c988353add" +checksum = "b9bcf5bdbfdd6030fb4a1c497b5d5fc5921aa2f60d359a17e249c0e6df3de153" dependencies = [ "cfg-if", "crossbeam-utils", @@ -794,19 +809,18 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.11" +version = "0.8.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51887d4adc7b564537b15adcfb307936f8075dfcd5f00dde9a9f1d29383682bc" +checksum = "c06d96137f14f244c37f989d9fff8f95e6c18b918e71f36638f8c49112e4c78f" dependencies = [ "cfg-if", - "once_cell", ] [[package]] name = "crypto-bigint" -version = "0.5.2" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4c2f4e1afd912bc40bfd6fed5d9dc1f288e0ba01bfcc835cc5bc3eb13efe15" +checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array", "rand_core", @@ -834,17 +848,11 @@ dependencies = [ "cipher", ] -[[package]] -name = "cty" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b365fabc795046672053e29c954733ec3b05e4be654ab130fe8f1f94d7051f35" - [[package]] name = "darling" -version = "0.20.1" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0558d22a7b463ed0241e993f76f09f30b126687447751a8638587b864e4b3944" +checksum = "0209d94da627ab5605dcccf08bb18afa5009cfbef48d8a8b7d7bdbc79be25c5e" dependencies = [ "darling_core", "darling_macro", @@ -852,34 +860,33 @@ dependencies = [ [[package]] name = "darling_core" -version = "0.20.1" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab8bfa2e259f8ee1ce5e97824a3c55ec4404a0d772ca7fa96bf19f0752a046eb" +checksum = "177e3443818124b357d8e76f53be906d60937f0d3a90773a664fa63fa253e621" dependencies = [ "fnv", "ident_case", "proc-macro2", "quote", "strsim", - "syn 2.0.24", + "syn 2.0.41", ] [[package]] name = "darling_macro" -version = "0.20.1" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29a358ff9f12ec09c3e61fef9b5a9902623a695a46a917b07f269bff1445611a" +checksum = "836a9bbc7ad63342d6d6e7b815ccab164bc77a2d95d84bc3117a8c0d5c98e2d5" dependencies = [ "darling_core", "quote", - "syn 2.0.24", + "syn 2.0.41", ] [[package]] name = "dashmap" version = "5.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "907076dfda823b0b36d2a1bb5f90c96660a5bbcd7729e10727f07858f22c4edc" +source = "git+https://github.com/xacrimon/dashmap.git?rev=7f9522c5286cfbbb78df15f00f87b8331cb875d6#7f9522c5286cfbbb78df15f00f87b8331cb875d6" dependencies = [ "cfg-if", "hashbrown 0.12.3", @@ -890,11 +897,12 @@ dependencies = [ [[package]] name = "dashmap" -version = "5.4.0" -source = "git+https://github.com/xacrimon/dashmap.git?rev=7f9522c5286cfbbb78df15f00f87b8331cb875d6#7f9522c5286cfbbb78df15f00f87b8331cb875d6" +version = "5.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" dependencies = [ "cfg-if", - "hashbrown 0.12.3", + "hashbrown 0.14.3", "lock_api", "once_cell", "parking_lot_core", @@ -902,24 +910,34 @@ dependencies = [ [[package]] name = "der" -version = "0.7.5" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05e58dffcdcc8ee7b22f0c1f71a69243d7c2d9ad87b5a14361f2424a1565c219" +checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c" dependencies = [ "const-oid", "pem-rfc7468", "zeroize", ] +[[package]] +name = "deranged" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eb30d70a07a3b04884d2677f06bec33509dc67ca60d92949e5535352d3191dc" +dependencies = [ + "powerfmt", + "serde", +] + [[package]] name = "derive_utils" -version = "0.12.0" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7590f99468735a318c254ca9158d0c065aa9b5312896b5a043b5e39bc96f5fa2" +checksum = "9abcad25e9720609ccb3dcdb795d845e37d8ce34183330a9f48b03a1a71c8e21" dependencies = [ "proc-macro2", "quote", - "syn 1.0.98", + "syn 2.0.41", ] [[package]] @@ -1001,9 +1019,9 @@ checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" [[package]] name = "ecdsa" -version = "0.16.7" +version = "0.16.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0997c976637b606099b9985693efa3581e84e41f5c11ba5255f88711058ad428" +checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" dependencies = [ "der", "digest", @@ -1015,15 +1033,15 @@ dependencies = [ [[package]] name = "either" -version = "1.7.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be" +checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] name = "elliptic-curve" -version = "0.13.4" +version = "0.13.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75c71eaa367f2e5d556414a8eea812bc62985c879748d6403edabd9cb03f16e7" +checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" dependencies = [ "base16ct", "crypto-bigint", @@ -1048,9 +1066,9 @@ checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" [[package]] name = "encoding_rs" -version = "0.8.31" +version = "0.8.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9852635589dc9f9ea1b6fe9f05b50ef208c85c834a562f0c6abb1c475736ec2b" +checksum = "7268b386296a025e474d5140678f75d6de9493ae55a5d709eeb9dd08149945e1" dependencies = [ "cfg-if", ] @@ -1065,43 +1083,35 @@ dependencies = [ ] [[package]] -name = "erased-serde" -version = "0.3.23" +name = "equivalent" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54558e0ba96fbe24280072642eceb9d7d442e32c7ec0ea9e7ecd7b4ea2cf4e11" -dependencies = [ - "serde", -] +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] -name = "errno" -version = "0.3.0" +name = "erased-serde" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50d6a0976c999d473fe89ad888d5a284e55366d9dc9038b1ba2aa15128c4afa0" +checksum = "6c138974f9d5e7fe373eb04df7cae98833802ae4b11c24ac7039a21d5af4b26c" dependencies = [ - "errno-dragonfly", - "libc", - "windows-sys 0.45.0", + "serde", ] [[package]] -name = "errno-dragonfly" -version = "0.1.2" +name = "errno" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" +checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" dependencies = [ - "cc", "libc", + "windows-sys 0.52.0", ] [[package]] name = "fastrand" -version = "1.8.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499" -dependencies = [ - "instant", -] +checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "ff" @@ -1115,21 +1125,21 @@ dependencies = [ [[package]] name = "filetime" -version = "0.2.17" +version = "0.2.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e94a7bbaa59354bc20dd75b67f23e2797b4490e9d6928203fb105c79e448c86c" +checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" dependencies = [ "cfg-if", "libc", "redox_syscall", - "windows-sys 0.36.1", + "windows-sys 0.52.0", ] [[package]] name = "flate2" -version = "1.0.26" +version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743" +checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e" dependencies = [ "crc32fast", "miniz_oxide", @@ -1145,7 +1155,7 @@ dependencies = [ "futures-sink", "nanorand", "pin-project", - "spin 0.9.4", + "spin 0.9.8", ] [[package]] @@ -1171,19 +1181,18 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "form_urlencoded" -version = "1.0.1" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" dependencies = [ - "matches", "percent-encoding", ] [[package]] name = "frunk" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a89c703bf50009f383a0873845357cc400a95fc535f836feddfe015d7df6e1e0" +checksum = "11a351b59e12f97b4176ee78497dff72e4276fb1ceb13e19056aca7fa0206287" dependencies = [ "frunk_core", "frunk_derives", @@ -1192,55 +1201,43 @@ dependencies = [ [[package]] name = "frunk_core" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a446d01a558301dca28ef43222864a9fa2bd9a2e71370f769d5d5d5ec9f3537" +checksum = "af2469fab0bd07e64ccf0ad57a1438f63160c69b2e57f04a439653d68eb558d6" [[package]] name = "frunk_derives" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b83164912bb4c97cfe0772913c7af7387ee2e00cb6d4636fb65a35b3d0c8f173" +checksum = "b0fa992f1656e1707946bbba340ad244f0814009ef8c0118eb7b658395f19a2e" dependencies = [ "frunk_proc_macro_helpers", "quote", - "syn 1.0.98", + "syn 2.0.41", ] [[package]] name = "frunk_proc_macro_helpers" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "015425591bbeb0f5b8a75593340f1789af428e9f887a4f1e36c0c471f067ef50" +checksum = "35b54add839292b743aeda6ebedbd8b11e93404f902c56223e51b9ec18a13d2c" dependencies = [ "frunk_core", "proc-macro2", "quote", - "syn 1.0.98", + "syn 2.0.41", ] [[package]] name = "frunk_proc_macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea01524f285deab48affffb342b97f186e657b119c3f1821ac531780e0fbfae0" -dependencies = [ - "frunk_core", - "frunk_proc_macros_impl", - "proc-macro-hack", -] - -[[package]] -name = "frunk_proc_macros_impl" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a802d974cc18ee7fe1a7868fc9ce31086294fd96ba62f8da64ecb44e92a2653" +checksum = "71b85a1d4a9a6b300b41c05e8e13ef2feca03e0334127f29eca9506a7fe13a93" dependencies = [ "frunk_core", "frunk_proc_macro_helpers", - "proc-macro-hack", "quote", - "syn 1.0.98", + "syn 2.0.41", ] [[package]] @@ -1270,9 +1267,9 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40" +checksum = "da0290714b38af9b4a7b094b8a37086d1b4e61f2df9122c3cad2577669145335" dependencies = [ "futures-channel", "futures-core", @@ -1285,9 +1282,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" +checksum = "ff4dd66668b557604244583e3e1e1eada8c5c2e96a6d0d6653ede395b78bbacb" dependencies = [ "futures-core", "futures-sink", @@ -1295,15 +1292,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" +checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c" [[package]] name = "futures-executor" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" +checksum = "0f4fb8693db0cf099eadcca0efe2a5a22e4550f98ed16aba6c48700da29597bc" dependencies = [ "futures-core", "futures-task", @@ -1312,38 +1309,38 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" +checksum = "8bf34a163b5c4c52d0478a4d757da8fb65cabef42ba90515efee0f6f9fa45aaa" [[package]] name = "futures-macro" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" +checksum = "53b153fd91e4b0147f4aced87be237c98248656bb01050b96bf3ee89220a8ddb" dependencies = [ "proc-macro2", "quote", - "syn 2.0.24", + "syn 2.0.41", ] [[package]] name = "futures-sink" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" +checksum = "e36d3378ee38c2a36ad710c5d30c2911d752cb941c00c72dbabfb786a7970817" [[package]] name = "futures-task" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" +checksum = "efd193069b0ddadc69c46389b740bbccdd97203899b48d09c5f7969591d6bae2" [[package]] name = "futures-util" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" +checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104" dependencies = [ "futures-channel", "futures-core", @@ -1359,9 +1356,9 @@ dependencies = [ [[package]] name = "generic-array" -version = "0.14.6" +version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", "version_check", @@ -1370,14 +1367,14 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.7" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" +checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" dependencies = [ "cfg-if", "js-sys", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "wasm-bindgen", ] @@ -1391,6 +1388,12 @@ dependencies = [ "polyval", ] +[[package]] +name = "gimli" +version = "0.28.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" + [[package]] name = "glob" version = "0.3.1" @@ -1410,9 +1413,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.18" +version = "0.3.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17f8a914c2987b688368b5138aa05321db91f4090cf26118185672ad588bce21" +checksum = "4d6250322ef6e60f93f9a2162799302cd6f68f79f6e5d85c8c16f14d1d958178" dependencies = [ "bytes", "fnv", @@ -1420,7 +1423,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap", + "indexmap 2.1.0", "slab", "tokio", "tokio-util", @@ -1433,16 +1436,26 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" dependencies = [ - "ahash 0.7.6", + "ahash 0.7.7", ] [[package]] name = "hashbrown" -version = "0.13.2" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ff8ae62cd3a9102e5637afc8452c55acf3844001bd5374e0b0bd7b6616c038" +dependencies = [ + "ahash 0.8.6", +] + +[[package]] +name = "hashbrown" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" dependencies = [ - "ahash 0.8.3", + "ahash 0.8.6", + "allocator-api2", ] [[package]] @@ -1456,24 +1469,15 @@ dependencies = [ [[package]] name = "heck" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" - -[[package]] -name = "hermit-abi" -version = "0.1.19" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" -dependencies = [ - "libc", -] +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "hermit-abi" -version = "0.3.1" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" +checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" [[package]] name = "hex" @@ -1483,9 +1487,9 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hkdf" -version = "0.12.3" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "791a029f6b9fc27657f6f188ec6e5e43f6911f6f878e0dc5501396e09809d437" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" dependencies = [ "hmac", ] @@ -1510,9 +1514,9 @@ dependencies = [ [[package]] name = "http" -version = "0.2.8" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75f43d41e26995c17e71ee126451dd3941010b0514a81a9d11f3b341debc2399" +checksum = "8947b1a6fad4393052c7ba1f4cd97bed3e953a95c79c92ad9b051a04611d9fbb" dependencies = [ "bytes", "fnv", @@ -1521,9 +1525,9 @@ dependencies = [ [[package]] name = "http-body" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ "bytes", "http", @@ -1538,15 +1542,15 @@ checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" [[package]] name = "httpdate" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "httptest" -version = "0.15.4" +version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6f25cfb6def593d43fae1ead24861f217e93bc70768a45cc149a69b5f049df4" +checksum = "c8b44a11846bda8c9fe9194f9924db7132c34635c7ce020f180f6c5d46d2308f" dependencies = [ "bstr 0.2.17", "bytes", @@ -1581,7 +1585,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.4.9", + "socket2 0.4.10", "tokio", "tower-service", "tracing", @@ -1590,10 +1594,11 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.24.0" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0646026eb1b3eea4cd9ba47912ea5ce9cc07713d105b1a14698f4e6433d348b7" +checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" dependencies = [ + "futures-util", "http", "hyper", "rustls", @@ -1616,15 +1621,25 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.46" +version = "0.1.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad2bfd338099682614d3ee3fe0cd72e0b6a41ca6a87f6a74a3bd593c91650501" +checksum = "8326b86b6cff230b97d0d312a6c40a60726df3332e721f72a1b035f451663b20" dependencies = [ "android_system_properties", "core-foundation-sys", + "iana-time-zone-haiku", "js-sys", "wasm-bindgen", - "winapi", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", ] [[package]] @@ -1635,30 +1650,39 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" [[package]] name = "idna" -version = "0.2.3" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" +checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" dependencies = [ - "matches", "unicode-bidi", "unicode-normalization", ] [[package]] name = "indexmap" -version = "1.9.1" +version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ "autocfg", "hashbrown 0.12.3", ] +[[package]] +name = "indexmap" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" +dependencies = [ + "equivalent", + "hashbrown 0.14.3", +] + [[package]] name = "indicatif" -version = "0.17.5" +version = "0.17.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ff8cc23a7393a397ed1d7f56e6365cba772aba9f9912ab968b03043c395d057" +checksum = "fb28741c9db9a713d93deb3bb9515c20788cef5815265bee4980e87bde7e0f25" dependencies = [ "console", "instant", @@ -1708,48 +1732,25 @@ dependencies = [ [[package]] name = "io-enum" -version = "1.0.2" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4b0d47a958cb166282b4dc4840a35783e861c2b39080af846e6481ebe145eee" +checksum = "5305557fa27b460072ae15ce07617e999f5879f14d376c8449f0bfb9f9d8e91e" dependencies = [ "derive_utils", - "quote", - "syn 1.0.98", -] - -[[package]] -name = "io-lifetimes" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46112a93252b123d31a119a8d1a1ac19deac4fac6e0e8b0df58f0d4e5870e63c" -dependencies = [ - "libc", - "windows-sys 0.42.0", + "syn 2.0.41", ] [[package]] name = "ipnet" -version = "2.5.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "879d54834c8c76457ef4293a689b2a8c59b076067ad77b15efafbb05f92a592b" - -[[package]] -name = "is-terminal" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "256017f749ab3117e93acb91063009e1f1bb56d03965b14c2c8df4eb02c524d8" -dependencies = [ - "hermit-abi 0.3.1", - "io-lifetimes", - "rustix", - "windows-sys 0.45.0", -] +checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" [[package]] name = "itoa" -version = "1.0.2" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" +checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" [[package]] name = "jni" @@ -1775,18 +1776,18 @@ checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" [[package]] name = "js-sys" -version = "0.3.59" +version = "0.3.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "258451ab10b34f8af53416d1fdab72c22e805f0c92a1136d59470ec0b11138b2" +checksum = "cee9c64da59eae3b50095c18d3e74f8b73c0b86d2792824ff01bbce68ba229ca" dependencies = [ "wasm-bindgen", ] [[package]] name = "kqueue" -version = "1.0.7" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c8fc60ba15bf51257aa9807a48a61013db043fcf3a78cb0d916e8e396dcad98" +checksum = "7447f1ca1b7b563588a205fe93dea8df60fd981423a768bc1c0ded35ed147d0c" dependencies = [ "kqueue-sys", "libc", @@ -1794,16 +1795,16 @@ dependencies = [ [[package]] name = "kqueue-sys" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8367585489f01bc55dd27404dcf56b95e6da061a256a666ab23be9ba96a2e587" +checksum = "ed9625ffda8729b85e45cf04090035ac368927b8cebc34898e7c120f52e4838b" dependencies = [ "bitflags 1.3.2", "libc", ] [[package]] -name = "lagon-cli" +name = "lagoss-cli" version = "0.1.0" dependencies = [ "anyhow", @@ -1815,10 +1816,10 @@ dependencies = [ "flume", "hyper", "indicatif", - "lagon-runtime", - "lagon-runtime-http", - "lagon-runtime-isolate", - "lagon-runtime-utils", + "lagoss-runtime", + "lagoss-runtime-http", + "lagoss-runtime-isolate", + "lagoss-runtime-utils", "notify", "pathdiff", "reqwest", @@ -1831,14 +1832,14 @@ dependencies = [ ] [[package]] -name = "lagon-runtime" +name = "lagoss-runtime" version = "0.1.0" dependencies = [ "flume", "httptest", "hyper", - "lagon-runtime-http", - "lagon-runtime-isolate", + "lagoss-runtime-http", + "lagoss-runtime-isolate", "log", "serial_test", "tokio", @@ -1846,7 +1847,7 @@ dependencies = [ ] [[package]] -name = "lagon-runtime-crypto" +name = "lagoss-runtime-crypto" version = "0.1.0" dependencies = [ "aes", @@ -1855,12 +1856,12 @@ dependencies = [ "cbc", "ctr", "hmac", - "lagon-runtime-v8-utils", + "lagoss-runtime-v8-utils", "num-traits", "p256", "p384", "rand", - "ring", + "ring 0.16.20", "rsa", "sha1", "sha2", @@ -1869,17 +1870,17 @@ dependencies = [ ] [[package]] -name = "lagon-runtime-http" +name = "lagoss-runtime-http" version = "0.1.0" dependencies = [ "anyhow", "hyper", - "lagon-runtime-v8-utils", + "lagoss-runtime-v8-utils", "v8", ] [[package]] -name = "lagon-runtime-isolate" +name = "lagoss-runtime-isolate" version = "0.1.0" dependencies = [ "anyhow", @@ -1887,9 +1888,9 @@ dependencies = [ "flume", "futures", "hyper", - "lagon-runtime-crypto", - "lagon-runtime-http", - "lagon-runtime-v8-utils", + "lagoss-runtime-crypto", + "lagoss-runtime-http", + "lagoss-runtime-v8-utils", "linked-hash-map", "log", "reqwest", @@ -1899,18 +1900,18 @@ dependencies = [ ] [[package]] -name = "lagon-runtime-utils" +name = "lagoss-runtime-utils" version = "0.1.0" dependencies = [ "anyhow", "flume", "hyper", - "lagon-runtime-http", + "lagoss-runtime-http", "tokio", ] [[package]] -name = "lagon-runtime-v8-utils" +name = "lagoss-runtime-v8-utils" version = "0.1.0" dependencies = [ "anyhow", @@ -1919,24 +1920,24 @@ dependencies = [ ] [[package]] -name = "lagon-serverless" +name = "lagoss-serverless" version = "0.1.0" dependencies = [ "anyhow", "bytes", "clickhouse", - "dashmap 5.4.0 (git+https://github.com/xacrimon/dashmap.git?rev=7f9522c5286cfbbb78df15f00f87b8331cb875d6)", + "dashmap 5.4.0", "dotenv", "flume", "futures", "hyper", - "lagon-runtime", - "lagon-runtime-http", - "lagon-runtime-isolate", - "lagon-runtime-utils", - "lagon-serverless-downloader", - "lagon-serverless-logger", - "lagon-serverless-pubsub", + "lagoss-runtime", + "lagoss-runtime-http", + "lagoss-runtime-isolate", + "lagoss-runtime-utils", + "lagoss-serverless-downloader", + "lagoss-serverless-logger", + "lagoss-serverless-pubsub", "log", "metrics", "metrics-exporter-prometheus", @@ -1953,17 +1954,17 @@ dependencies = [ ] [[package]] -name = "lagon-serverless-downloader" +name = "lagoss-serverless-downloader" version = "0.1.0" dependencies = [ "anyhow", "async-trait", - "lagon-runtime-utils", + "lagoss-runtime-utils", "rust-s3", ] [[package]] -name = "lagon-serverless-logger" +name = "lagoss-serverless-logger" version = "0.1.0" dependencies = [ "axiom-rs", @@ -1975,7 +1976,7 @@ dependencies = [ ] [[package]] -name = "lagon-serverless-pubsub" +name = "lagoss-serverless-pubsub" version = "0.1.0" dependencies = [ "anyhow", @@ -1987,15 +1988,15 @@ dependencies = [ ] [[package]] -name = "lagon-wpt-runner" +name = "lagoss-wpt-runner" version = "0.1.0" dependencies = [ "console", "flume", "hyper", - "lagon-runtime", - "lagon-runtime-http", - "lagon-runtime-isolate", + "lagoss-runtime", + "lagoss-runtime-http", + "lagoss-runtime-isolate", "tokio", ] @@ -2089,9 +2090,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.144" +version = "0.2.151" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1" +checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4" [[package]] name = "libloading" @@ -2105,9 +2106,20 @@ dependencies = [ [[package]] name = "libm" -version = "0.2.6" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" + +[[package]] +name = "libredox" +version = "0.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "348108ab3fba42ec82ff6e9564fc4ca0247bdccdc68dd8af9764bbc79c3c8ffb" +checksum = "85c833ca1e66078851dba29046874e38f08b2c883700aa29a03ddd3b23814ee8" +dependencies = [ + "bitflags 2.4.1", + "libc", + "redox_syscall", +] [[package]] name = "linked-hash-map" @@ -2117,15 +2129,15 @@ checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" [[package]] name = "linux-raw-sys" -version = "0.3.0" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd550e73688e6d578f0ac2119e32b797a327631a42f9433e59d02e139c8df60d" +checksum = "c4cd1a83af159aa67994778be9070f0ae1bd732942279cabb14f86f986a21456" [[package]] name = "lock_api" -version = "0.4.9" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" +checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" dependencies = [ "autocfg", "scopeguard", @@ -2133,9 +2145,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.19" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" +checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" dependencies = [ "serde", "value-bag", @@ -2143,11 +2155,11 @@ dependencies = [ [[package]] name = "lru" -version = "0.10.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03f1160296536f10c833a82dca22267d5486734230d47bf00bf435885814ba1e" +checksum = "718e8fae447df0c7e1ba7f5189829e63fd536945c8988d61444c19039f16b670" dependencies = [ - "hashbrown 0.13.2", + "hashbrown 0.13.1", ] [[package]] @@ -2188,12 +2200,6 @@ dependencies = [ "libc", ] -[[package]] -name = "matches" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" - [[package]] name = "maybe-async" version = "0.2.7" @@ -2202,7 +2208,7 @@ checksum = "0f1b8c13cb1f814b634a96b2c725449fe7ed464a7b8781de8688be5ffbd3f305" dependencies = [ "proc-macro2", "quote", - "syn 1.0.98", + "syn 1.0.109", ] [[package]] @@ -2213,15 +2219,15 @@ checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771" [[package]] name = "memchr" -version = "2.5.0" +version = "2.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" [[package]] name = "memoffset" -version = "0.6.5" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" +checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" dependencies = [ "autocfg", ] @@ -2232,20 +2238,20 @@ version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fde3af1a009ed76a778cb84fdef9e7dbbdf5775ae3e4cc1f434a6a307f6f76c5" dependencies = [ - "ahash 0.8.3", + "ahash 0.8.6", "metrics-macros", "portable-atomic", ] [[package]] name = "metrics-exporter-prometheus" -version = "0.12.1" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a4964177ddfdab1e3a2b37aec7cf320e14169abb0ed73999f558136409178d5" +checksum = "1d4fa7ce7c4862db464a37b0b31d89bca874562f034bd7993895572783d02950" dependencies = [ - "base64 0.21.0", + "base64 0.21.5", "hyper", - "indexmap", + "indexmap 1.9.3", "ipnet", "metrics", "metrics-util", @@ -2262,18 +2268,18 @@ checksum = "ddece26afd34c31585c74a4db0630c376df271c285d682d1e55012197830b6df" dependencies = [ "proc-macro2", "quote", - "syn 2.0.24", + "syn 2.0.41", ] [[package]] name = "metrics-util" -version = "0.15.0" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "111cb375987443c3de8d503580b536f77dc8416d32db62d9456db5d93bd7ac47" +checksum = "4de2ed6e491ed114b40b732e4d1659a9d53992ebd87490c44a6ffe23739d973e" dependencies = [ "crossbeam-epoch", "crossbeam-utils", - "hashbrown 0.13.2", + "hashbrown 0.13.1", "metrics", "num_cpus", "quanta", @@ -2282,15 +2288,15 @@ dependencies = [ [[package]] name = "mime" -version = "0.3.16" +version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "minidom" -version = "0.15.1" +version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e9ce45d459e358790a285e7609ff5ae4cfab88b75f237e8838e62029dda397b" +checksum = "f45614075738ce1b77a1768912a60c0227525971b03e09122a05b8a34a2a6278" dependencies = [ "rxml", ] @@ -2312,14 +2318,14 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.4" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf" +checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09" dependencies = [ "libc", "log", - "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.36.1", + "wasi", + "windows-sys 0.48.0", ] [[package]] @@ -2344,7 +2350,7 @@ dependencies = [ "rustls-pemfile", "serde", "serde_json", - "socket2 0.5.3", + "socket2 0.5.5", "twox-hash", "url", "webpki", @@ -2358,27 +2364,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56b0d8a0db9bf6d2213e11f2c701cb91387b0614361625ab7b9743b41aa4938f" dependencies = [ "darling", - "heck 0.4.0", + "heck 0.4.1", "num-bigint", - "proc-macro-crate 1.2.1", + "proc-macro-crate 1.3.1", "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.24", + "syn 2.0.41", "termcolor", "thiserror", ] [[package]] name = "mysql_common" -version = "0.30.4" +version = "0.30.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73b8fb568c9537cf4f1ad39e2542aa74a66bf89883e550df2cb30a8f0c0f0355" +checksum = "57349d5a326b437989b6ee4dc8f2f34b0cc131202748414712a8e7d98952fc8c" dependencies = [ - "base64 0.21.0", + "base64 0.21.5", "bigdecimal", "bindgen", - "bitflags 2.3.1", + "bitflags 2.4.1", "bitvec", "byteorder", "bytes", @@ -2403,7 +2409,7 @@ dependencies = [ "smallvec", "subprocess", "thiserror", - "time 0.3.14", + "time", "uuid", ] @@ -2427,9 +2433,9 @@ dependencies = [ [[package]] name = "native-tls" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd7e2f3618557f980e0b17e8856252eee3c97fa12c54dff0ca290fb6266ca4a9" +checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e" dependencies = [ "lazy_static", "libc", @@ -2451,9 +2457,9 @@ checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" [[package]] name = "nom" -version = "7.1.1" +version = "7.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8903e5a29a317527874d0402f867152a3d21c908bb0b933e416c65e301d4c36" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" dependencies = [ "memchr", "minimal-lexical", @@ -2461,27 +2467,28 @@ dependencies = [ [[package]] name = "notify" -version = "6.0.1" +version = "6.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5738a2795d57ea20abec2d6d76c6081186709c0024187cd5977265eda6598b51" +checksum = "6205bd8bb1e454ad2e27422015fb5e4f2bcc7e08fa8f27058670d208324a4d2d" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.4.1", "crossbeam-channel", "filetime", "fsevent-sys", "inotify", "kqueue", "libc", + "log", "mio", "walkdir", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] name = "num-bigint" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93ab6289c7b344a8a9f60f88d80aa20032336fe78da341afc91c8a2341fc75f" +checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" dependencies = [ "autocfg", "num-integer", @@ -2490,9 +2497,9 @@ dependencies = [ [[package]] name = "num-bigint-dig" -version = "0.8.2" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2399c9463abc5f909349d8aa9ba080e0b88b3ce2885389b60b993f39b1a56905" +checksum = "dc84195820f291c7697304f3cbdadd1cb7199c0efc917ff5eafd71225c136151" dependencies = [ "byteorder", "lazy_static", @@ -2513,7 +2520,7 @@ checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d" dependencies = [ "proc-macro2", "quote", - "syn 1.0.98", + "syn 1.0.109", ] [[package]] @@ -2539,9 +2546,9 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" +checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" dependencies = [ "autocfg", "libm", @@ -2549,42 +2556,33 @@ dependencies = [ [[package]] name = "num_cpus" -version = "1.13.1" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.1.19", + "hermit-abi", "libc", ] [[package]] name = "num_enum" -version = "0.5.7" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf5395665662ef45796a4ff5486c5d41d29e0c09640af4c5f17fd94ee2c119c9" +checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9" dependencies = [ "num_enum_derive", ] [[package]] name = "num_enum_derive" -version = "0.5.7" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b0498641e53dd6ac1a4f22547548caa6864cc4933784319cd1775271c5a46ce" +checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799" dependencies = [ - "proc-macro-crate 1.2.1", + "proc-macro-crate 1.3.1", "proc-macro2", "quote", - "syn 1.0.98", -] - -[[package]] -name = "num_threads" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44" -dependencies = [ - "libc", + "syn 1.0.109", ] [[package]] @@ -2602,11 +2600,20 @@ dependencies = [ "malloc_buf", ] +[[package]] +name = "object" +version = "0.32.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cf5f9dd3933bd50a9e1f149ec995f39ae2c496d31fd772c1fd45ebc27e902b0" +dependencies = [ + "memchr", +] + [[package]] name = "once_cell" -version = "1.17.1" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "opaque-debug" @@ -2616,11 +2623,11 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "openssl" -version = "0.10.41" +version = "0.10.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "618febf65336490dfcf20b73f885f5651a0c89c64c2d4a8c3662585a70bf5bd0" +checksum = "6b8419dc8cc6d866deb801274bba2e6f8f6108c1bb7fcc10ee5ab864931dbb45" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.4.1", "cfg-if", "foreign-types", "libc", @@ -2631,13 +2638,13 @@ dependencies = [ [[package]] name = "openssl-macros" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b501e44f11665960c7e7fcf062c7d96a14ade4aa98116c004b2e37b5be7d736c" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 1.0.98", + "syn 2.0.41", ] [[package]] @@ -2648,11 +2655,10 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.75" +version = "0.9.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5f9bd0c2710541a3cda73d6f9ac4f1b240de4ae261065d309dbe73d9dceb42f" +checksum = "c3eaad34cdd97d81de97964fc7f29e2d104f483840d906ef56daa1912338460b" dependencies = [ - "autocfg", "cc", "libc", "pkg-config", @@ -2711,15 +2717,15 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.3" +version = "0.9.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929" +checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" dependencies = [ "cfg-if", "libc", "redox_syscall", "smallvec", - "windows-sys 0.36.1", + "windows-targets 0.48.5", ] [[package]] @@ -2740,7 +2746,7 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6b13fe415cdf3c8e44518e18a7c95a13431d9bdf6d15367d82b23c377fdd441a" dependencies = [ - "base64 0.21.0", + "base64 0.21.5", "serde", ] @@ -2755,35 +2761,35 @@ dependencies = [ [[package]] name = "percent-encoding" -version = "2.1.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pin-project" -version = "1.0.12" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad29a609b6bcd67fee905812e544992d216af9d755757c05ed2d0e15a74c6ecc" +checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.0.12" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55" +checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 1.0.98", + "syn 2.0.41", ] [[package]] name = "pin-project-lite" -version = "0.2.9" +version = "0.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" +checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" [[package]] name = "pin-utils" @@ -2814,15 +2820,15 @@ dependencies = [ [[package]] name = "pkg-config" -version = "0.3.25" +version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae" +checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" [[package]] name = "polyval" -version = "0.6.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef234e08c11dfcb2e56f79fd70f6f2eb7f025c0ce2333e82f4f0518ecad30c6" +checksum = "d52cff9d1d4dee5fe6d03729099f4a310a41179e0a10dbf542039873f2e826fb" dependencies = [ "cfg-if", "cpufeatures", @@ -2832,43 +2838,48 @@ dependencies = [ [[package]] name = "portable-atomic" -version = "1.2.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f602a0d1e09a48e4f8e8b4d4042e32807c3676da31f2ecabeac9f96226ec6c45" +checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] name = "ppv-lite86" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "primeorder" -version = "0.13.1" +version = "0.13.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf8d3875361e28f7753baefef104386e7aa47642c93023356d97fdef4003bfb5" +checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6" dependencies = [ "elliptic-curve", ] [[package]] name = "proc-macro-crate" -version = "0.1.5" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" dependencies = [ - "toml", + "once_cell", + "toml_edit 0.19.15", ] [[package]] name = "proc-macro-crate" -version = "1.2.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eda0fc3b0fb7c975631757e14d9049da17374063edb6ebbcbc54d880d4fe94e9" +checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8" dependencies = [ - "once_cell", - "thiserror", - "toml", + "toml_edit 0.20.7", ] [[package]] @@ -2880,7 +2891,7 @@ dependencies = [ "proc-macro-error-attr", "proc-macro2", "quote", - "syn 1.0.98", + "syn 1.0.109", "version_check", ] @@ -2895,17 +2906,11 @@ dependencies = [ "version_check", ] -[[package]] -name = "proc-macro-hack" -version = "0.5.20+deprecated" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" - [[package]] name = "proc-macro2" -version = "1.0.64" +version = "1.0.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78803b62cbf1f46fde80d7c0e803111524b9877184cfe7c3033659490ac7a7da" +checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b" dependencies = [ "unicode-ident", ] @@ -2927,21 +2932,21 @@ checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac" dependencies = [ "proc-macro2", "quote", - "syn 1.0.98", + "syn 1.0.109", ] [[package]] name = "quanta" -version = "0.11.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cc73c42f9314c4bdce450c77e6f09ecbddefbeddb1b5979ded332a3913ded33" +checksum = "a17e662a7a8291a865152364c20c7abc5e60486ab2001e8ec10b24862de0b9ab" dependencies = [ "crossbeam-utils", "libc", "mach2", "once_cell", "raw-cpuid", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "web-sys", "winapi", ] @@ -2958,9 +2963,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.29" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "573015e8ab27661678357f27dc26460738fd2b6c86e46f386fde94cb5d913105" +checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" dependencies = [ "proc-macro2", ] @@ -3003,27 +3008,24 @@ dependencies = [ [[package]] name = "raw-cpuid" -version = "10.6.0" +version = "10.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6823ea29436221176fe662da99998ad3b4db2c7f31e7b6f5fe43adccd6320bb" +checksum = "6c297679cb867470fa8c9f67dbba74a78d78e3e98d7cf2b08d6d71540f797332" dependencies = [ "bitflags 1.3.2", ] [[package]] name = "raw-window-handle" -version = "0.5.0" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed7e3d950b66e19e0c372f3fa3fbbcf85b1746b571f74e0c2af6042a5c93420a" -dependencies = [ - "cty", -] +checksum = "f2ff9a1f06a88b01621b7ae906ef0211290d1c8a168a15542486a8f61c0833b9" [[package]] name = "redis" -version = "0.23.0" +version = "0.23.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ea8c51b5dc1d8e5fd3350ec8167f464ec0995e79f2e90a075b63371500d557f" +checksum = "4f49cdc0bb3f412bf8e7d1bd90fe1d9eb10bc5c399ba90973c14662a27b3f8ba" dependencies = [ "combine", "itoa", @@ -3036,32 +3038,33 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.2.16" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" dependencies = [ "bitflags 1.3.2", ] [[package]] name = "redox_users" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" +checksum = "a18479200779601e498ada4e8c1e1f50e3ee19deb0259c25825a98b5603b2cb4" dependencies = [ "getrandom", - "redox_syscall", + "libredox", "thiserror", ] [[package]] name = "regex" -version = "1.6.0" +version = "1.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" +checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343" dependencies = [ "aho-corasick", "memchr", + "regex-automata 0.4.3", "regex-syntax", ] @@ -3072,37 +3075,39 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" [[package]] -name = "regex-syntax" -version = "0.6.27" +name = "regex-automata" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" +checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] [[package]] -name = "remove_dir_all" -version = "0.5.3" +name = "regex-syntax" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" -dependencies = [ - "winapi", -] +checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "rend" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "581008d2099240d37fb08d77ad713bcaec2c4d89d50b5b21a8bb1996bbab68ab" +checksum = "a2571463863a6bd50c32f94402933f03457a3fbaf697a707c5be741e459f08fd" dependencies = [ "bytecheck", ] [[package]] name = "reqwest" -version = "0.11.18" +version = "0.11.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cde824a14b7c14f85caff81225f411faacc04a2013f41670f41443742b1c1c55" +checksum = "046cd98826c46c2ac8ddecae268eb5c2e58628688a5fc7a2643704a73faba95b" dependencies = [ "async-compression", - "base64 0.21.0", + "base64 0.21.5", "bytes", "encoding_rs", "futures-core", @@ -3126,6 +3131,7 @@ dependencies = [ "serde", "serde_json", "serde_urlencoded", + "system-configuration", "tokio", "tokio-native-tls", "tokio-rustls", @@ -3136,7 +3142,7 @@ dependencies = [ "wasm-bindgen-futures", "wasm-streams", "web-sys", - "webpki-roots 0.22.6", + "webpki-roots 0.25.3", "winreg", ] @@ -3160,34 +3166,51 @@ dependencies = [ "libc", "once_cell", "spin 0.5.2", - "untrusted", + "untrusted 0.7.1", "web-sys", "winapi", ] +[[package]] +name = "ring" +version = "0.17.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "688c63d65483050968b2a8937f7995f443e27041a0f7700aa59b0822aedebb74" +dependencies = [ + "cc", + "getrandom", + "libc", + "spin 0.9.8", + "untrusted 0.9.0", + "windows-sys 0.48.0", +] + [[package]] name = "rkyv" -version = "0.7.40" +version = "0.7.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c30f1d45d9aa61cbc8cd1eb87705470892289bb2d01943e7803b873a57404dc3" +checksum = "0200c8230b013893c0b2d6213d6ec64ed2b9be2e0e016682b7224ff82cff5c58" dependencies = [ + "bitvec", "bytecheck", "hashbrown 0.12.3", "ptr_meta", "rend", "rkyv_derive", "seahash", + "tinyvec", + "uuid", ] [[package]] name = "rkyv_derive" -version = "0.7.40" +version = "0.7.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff26ed6c7c4dfc2aa9480b86a60e3c7233543a270a680e10758a507c5a4ce476" +checksum = "b2e06b915b5c230a17d7a736d1e2e63ee753c256a8614ef3f5147b13a4f5541d" dependencies = [ "proc-macro2", "quote", - "syn 1.0.98", + "syn 1.0.109", ] [[package]] @@ -3232,7 +3255,7 @@ dependencies = [ "async-trait", "aws-creds", "aws-region", - "base64 0.13.0", + "base64 0.13.1", "bytes", "cfg-if", "futures", @@ -3250,7 +3273,7 @@ dependencies = [ "serde_derive", "sha2", "thiserror", - "time 0.3.14", + "time", "tokio", "tokio-stream", "url", @@ -3258,14 +3281,12 @@ dependencies = [ [[package]] name = "rust_decimal" -version = "1.29.0" +version = "1.33.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b1b21b8760b0ef8ae5b43d40913ff711a2053cb7ff892a34facff7a6365375a" +checksum = "06676aec5ccb8fc1da723cc8c0f9a46549f21ebb8753d3915c6c41db1e7f1dc4" dependencies = [ "arrayvec", "borsh", - "bytecheck", - "byteorder", "bytes", "num-traits", "rand", @@ -3274,6 +3295,12 @@ dependencies = [ "serde_json", ] +[[package]] +name = "rustc-demangle" +version = "0.1.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" + [[package]] name = "rustc-hash" version = "1.1.0" @@ -3282,35 +3309,34 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustix" -version = "0.37.5" +version = "0.38.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e78cc525325c06b4a7ff02db283472f3c042b7ff0c391f96c6d5ac6f4f91b75" +checksum = "72e572a5e8ca657d7366229cdde4bd14c4eb5499a9573d4d366fe1b599daa316" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.4.1", "errno", - "io-lifetimes", "libc", "linux-raw-sys", - "windows-sys 0.45.0", + "windows-sys 0.52.0", ] [[package]] name = "rustls" -version = "0.21.1" +version = "0.21.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c911ba11bc8433e811ce56fde130ccf32f5127cab0e0194e9c68c5a5b671791e" +checksum = "f9d5a6813c0759e4609cd494e8e725babae6a2ca7b62a5536a13daaec6fcb7ba" dependencies = [ "log", - "ring", - "rustls-webpki", + "ring 0.17.7", + "rustls-webpki 0.101.7", "sct", ] [[package]] name = "rustls-native-certs" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0167bac7a9f490495f3c33013e7722b53cb087ecbe082fb0c6387c96f634ea50" +checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" dependencies = [ "openssl-probe", "rustls-pemfile", @@ -3320,47 +3346,55 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "1.0.2" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d194b56d58803a43635bdc398cd17e383d6f71f9182b9a192c127ca42494a59b" +checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" dependencies = [ - "base64 0.21.0", + "base64 0.21.5", ] [[package]] name = "rustls-webpki" -version = "0.100.1" +version = "0.100.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6207cd5ed3d8dca7816f8f3725513a34609c0c765bf652b8c3cb4cfd87db46b" +checksum = "5f6a5fc258f1c1276dfe3016516945546e2d5383911efc0fc4f1cdc5df3a4ae3" dependencies = [ - "ring", - "untrusted", + "ring 0.16.20", + "untrusted 0.7.1", +] + +[[package]] +name = "rustls-webpki" +version = "0.101.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" +dependencies = [ + "ring 0.17.7", + "untrusted 0.9.0", ] [[package]] name = "rxml" -version = "0.8.2" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a071866b8c681dc2cfffa77184adc32b57b0caad4e620b6292609703bceb804" +checksum = "a98f186c7a2f3abbffb802984b7f1dfd65dac8be1aafdaabbca4137f53f0dff7" dependencies = [ "bytes", - "pin-project-lite", "rxml_validation", "smartstring", - "tokio", ] [[package]] name = "rxml_validation" -version = "0.8.2" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53bc79743f9a66c2fb1f951cd83735f275d46bfe466259fbc5897bb60a0d00ee" +checksum = "22a197350ece202f19a166d1ad6d9d6de145e1d2a8ef47db299abe164dbd7530" [[package]] name = "ryu" -version = "1.0.11" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" +checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" [[package]] name = "same-file" @@ -3379,28 +3413,27 @@ checksum = "ece8e78b2f38ec51c51f5d475df0a7187ba5111b2a28bdc761ee05b075d40a71" [[package]] name = "schannel" -version = "0.1.20" +version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2" +checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" dependencies = [ - "lazy_static", - "windows-sys 0.36.1", + "windows-sys 0.48.0", ] [[package]] name = "scopeguard" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "sct" -version = "0.7.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4" +checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" dependencies = [ - "ring", - "untrusted", + "ring 0.17.7", + "untrusted 0.9.0", ] [[package]] @@ -3418,14 +3451,14 @@ dependencies = [ "heck 0.3.3", "proc-macro2", "quote", - "syn 1.0.98", + "syn 1.0.109", ] [[package]] name = "sec1" -version = "0.7.1" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48518a2b5775ba8ca5b46596aae011caa431e6ce7e4a67ead66d92f08884220e" +checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ "base16ct", "der", @@ -3437,9 +3470,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.7.0" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bc1bb97804af6631813c55739f771071e0f2ed33ee20b68c86ec505d906356c" +checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" dependencies = [ "bitflags 1.3.2", "core-foundation", @@ -3450,9 +3483,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.6.1" +version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556" +checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" dependencies = [ "core-foundation-sys", "libc", @@ -3460,22 +3493,22 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.163" +version = "1.0.193" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2113ab51b87a539ae008b5c6c02dc020ffa39afd2d83cffcb3f4eb2722cebec2" +checksum = "25dd9975e68d0cb5aa1120c288333fc98731bd1dd12f561e468ea4728c042b89" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.163" +version = "1.0.193" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e" +checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.24", + "syn 2.0.41", ] [[package]] @@ -3486,23 +3519,23 @@ checksum = "85bf8229e7920a9f636479437026331ce11aa132b4dde37d121944a44d6e5f3c" dependencies = [ "proc-macro2", "quote", - "syn 1.0.98", + "syn 1.0.109", ] [[package]] name = "serde_fmt" -version = "1.0.1" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2963a69a2b3918c1dc75a45a18bd3fcd1120e31d3f59deb1b2f9b5d5ffb8baa4" +checksum = "e1d4ddca14104cd60529e8c7f7ba71a2c8acd8f7f5cfcdc2faf97eeb7c3010a4" dependencies = [ "serde", ] [[package]] name = "serde_json" -version = "1.0.85" +version = "1.0.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e55a28e3aaef9d5ce0506d0a14dbba8054ddc7e499ef522dd8b26859ec9d4a44" +checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" dependencies = [ "itoa", "ryu", @@ -3538,7 +3571,7 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0e56dd856803e253c8f298af3f4d7eb0ae5e23a737252cd90bb4f3b435033b2d" dependencies = [ - "dashmap 5.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "dashmap 5.5.3", "futures", "lazy_static", "log", @@ -3554,14 +3587,14 @@ checksum = "91d129178576168c589c9ec973feedf7d3126c01ac2bf08795109aa35b69fb8f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.24", + "syn 2.0.41", ] [[package]] name = "sha1" -version = "0.10.5" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" dependencies = [ "cfg-if", "cpufeatures", @@ -3570,9 +3603,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.7" +version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8" +checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" dependencies = [ "cfg-if", "cpufeatures", @@ -3587,9 +3620,9 @@ checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde" [[package]] name = "shlex" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" +checksum = "a7cee0529a6d40f580e7a5e6c495c8fbfe21b7b52795ed4bb5e62cdf92bc6380" [[package]] name = "signal-hook-registry" @@ -3602,9 +3635,9 @@ dependencies = [ [[package]] name = "signature" -version = "2.0.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fe458c98333f9c8152221191a77e2a44e8325d0193484af2e9421a53019e57d" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ "digest", "rand_core", @@ -3618,29 +3651,34 @@ checksum = "f27f6278552951f1f2b8cf9da965d10969b2efdea95a6ec47987ab46edfe263a" [[package]] name = "sketches-ddsketch" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ceb945e54128e09c43d8e4f1277851bd5044c6fc540bbaa2ad888f60b3da9ae7" +checksum = "68a406c1882ed7f29cd5e248c9848a80e7cb6ae0fea82346d2746f2f941c07e1" [[package]] name = "slab" -version = "0.4.6" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb703cfe953bccee95685111adeedb76fabe4e97549a58d16f03ea7b9367bb32" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" +dependencies = [ + "autocfg", +] [[package]] name = "smallvec" -version = "1.10.0" +version = "1.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" +checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970" [[package]] name = "smartstring" -version = "0.2.10" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e714dff2b33f2321fdcd475b71cec79781a692d846f37f415fb395a1d2bcd48e" +checksum = "3fb72c633efbaa2dd666986505016c32c3044395ceaf881518399d2f4127ee29" dependencies = [ + "autocfg", "static_assertions", + "version_check", ] [[package]] @@ -3654,9 +3692,9 @@ dependencies = [ [[package]] name = "socket2" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" +checksum = "9f7916fc008ca5542385b89a3d3ce689953c143e9304a9bf8beec1de48994c0d" dependencies = [ "libc", "winapi", @@ -3664,9 +3702,9 @@ dependencies = [ [[package]] name = "socket2" -version = "0.5.3" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2538b18701741680e0322a2302176d3253a35388e2e62f172f64f4f16605f877" +checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9" dependencies = [ "libc", "windows-sys 0.48.0", @@ -3680,18 +3718,18 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "spin" -version = "0.9.4" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f6002a767bff9e83f8eeecf883ecb8011875a21ae8da43bffb817a57e78cc09" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" dependencies = [ "lock_api", ] [[package]] name = "spki" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d1e996ef02c474957d681f1b05213dfb0abab947b446a62d37770b23500184a" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" dependencies = [ "base64ct", "der", @@ -3721,21 +3759,21 @@ dependencies = [ [[package]] name = "subtle" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" +checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "sval" -version = "2.4.0" +version = "2.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1515bb3042d9613119ed1cb94e53c9caefac276f2ad6bfaa44645d20a2500af6" +checksum = "b15df12a8db7c216a04b4b438f90d50d5335cd38f161b56389c9f5c9d96d0873" [[package]] name = "sval_buffer" -version = "2.4.0" +version = "2.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75d7893d7b47fc4fa42a1c4817416d61444c110ca754c724edfaa80c3cde6aa2" +checksum = "57e80556bc8acea0446e574ce542ad6114a76a0237f28a842bc01ca3ea98f479" dependencies = [ "sval", "sval_ref", @@ -3743,18 +3781,18 @@ dependencies = [ [[package]] name = "sval_dynamic" -version = "2.4.0" +version = "2.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce4afcda4a9921629a62ee5923ebe6738db4f16d302004abfe7e17d6aeb70846" +checksum = "9d93d2259edb1d7b4316179f0a98c62e3ffc726f47ab200e07cfe382771f57b8" dependencies = [ "sval", ] [[package]] name = "sval_fmt" -version = "2.4.0" +version = "2.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e40de95a562de713522349039425809acbfc75fec722690981da11000ef73572" +checksum = "532f7f882226f7a5a4656f5151224aaebf8217e0d539cb1595b831bace921343" dependencies = [ "itoa", "ryu", @@ -3763,9 +3801,9 @@ dependencies = [ [[package]] name = "sval_json" -version = "2.4.0" +version = "2.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "637b14955353c2f718b0b9fae94bbd6cbb5ccceeb26c7f50d4a35f662dfafab3" +checksum = "76e03bd8aa0ae6ee018f7ae95c9714577687a4415bd1a5f19b26e34695f7e072" dependencies = [ "itoa", "ryu", @@ -3774,18 +3812,18 @@ dependencies = [ [[package]] name = "sval_ref" -version = "2.4.0" +version = "2.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad6cac002fb5fc7129160f72e73fb7bc27097119c40b14a7278719c24bdc1dd8" +checksum = "75ed054f2fb8c2a0ab5d36c1ec57b412919700099fc5e32ad8e7a38b23e1a9e1" dependencies = [ "sval", ] [[package]] name = "sval_serde" -version = "2.4.0" +version = "2.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67a6b4e5f23c912d433f945037f874a0e81b557a9ef2b2bdfbc7f6103c18df6c" +checksum = "7ff191c4ff05b67e3844c161021427646cde5d6624597958be158357d9200586" dependencies = [ "serde", "sval", @@ -3795,9 +3833,9 @@ dependencies = [ [[package]] name = "syn" -version = "1.0.98" +version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ "proc-macro2", "quote", @@ -3806,15 +3844,48 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.24" +version = "2.0.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36ccaf716a23c35ff908f91c971a86a9a71af5998c1d8f10e828d9f55f68ac00" +checksum = "44c8b28c477cc3bf0e7966561e3460130e1255f7a1cf71931075f1c5e7a7e269" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] +[[package]] +name = "syn_derive" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1329189c02ff984e9736652b1631330da25eaa6bc639089ed4915d25446cbe7b" +dependencies = [ + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.41", +] + +[[package]] +name = "system-configuration" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" +dependencies = [ + "bitflags 1.3.2", + "core-foundation", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "tap" version = "1.0.1" @@ -3823,52 +3894,51 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "tempfile" -version = "3.3.0" +version = "3.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4" +checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5" dependencies = [ "cfg-if", "fastrand", - "libc", "redox_syscall", - "remove_dir_all", - "winapi", + "rustix", + "windows-sys 0.48.0", ] [[package]] name = "termcolor" -version = "1.2.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" +checksum = "ff1bc3d3f05aff0403e8ac0d92ced918ec05b666a43f83297ccef5bea8a3d449" dependencies = [ "winapi-util", ] [[package]] name = "thiserror" -version = "1.0.40" +version = "1.0.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" +checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.40" +version = "1.0.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" +checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.24", + "syn 2.0.41", ] [[package]] name = "tikv-jemalloc-sys" -version = "0.5.3+5.3.0-patched" +version = "0.5.4+5.3.0-patched" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a678df20055b43e57ef8cddde41cdfda9a3c1a060b67f4c5836dfb1d78543ba8" +checksum = "9402443cb8fd499b6f327e40565234ff34dbda27460c5b47db0db77443dd85d1" dependencies = [ "cc", "libc", @@ -3876,9 +3946,9 @@ dependencies = [ [[package]] name = "tikv-jemallocator" -version = "0.5.0" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20612db8a13a6c06d57ec83953694185a367e16945f66565e8028d2c0bd76979" +checksum = "965fe0c26be5c56c94e38ba547249074803efd52adfb66de62107d95aab3eaca" dependencies = [ "libc", "tikv-jemalloc-sys", @@ -3886,33 +3956,32 @@ dependencies = [ [[package]] name = "time" -version = "0.1.44" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" -dependencies = [ - "libc", - "wasi 0.10.0+wasi-snapshot-preview1", - "winapi", -] - -[[package]] -name = "time" -version = "0.3.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c3f9a28b618c3a6b9251b6908e9c99e04b9e5c02e6581ccbb67d59c34ef7f9b" +checksum = "c4a34ab300f2dee6e562c10a046fc05e358b29f9bf92277f30c3c8d82275f6f5" dependencies = [ + "deranged", "itoa", - "libc", - "num_threads", + "powerfmt", "serde", + "time-core", "time-macros", ] +[[package]] +name = "time-core" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" + [[package]] name = "time-macros" -version = "0.2.4" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42657b1a6f4d817cda8e7a0ace261fe0cc946cf3a80314390b22cc61ae080792" +checksum = "4ad70d68dba9e1f8aceda7aa6711965dfec1cac869f311a51bd08b3a2ccbce20" +dependencies = [ + "time-core", +] [[package]] name = "tinyvec" @@ -3925,27 +3994,26 @@ dependencies = [ [[package]] name = "tinyvec_macros" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.25.0" +version = "1.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8e00990ebabbe4c14c08aca901caed183ecd5c09562a12c824bb53d3c3fd3af" +checksum = "841d45b238a16291a4e1584e61820b8ae57d696cc5015c459c229ccc6990cc1c" dependencies = [ - "autocfg", + "backtrace", "bytes", "libc", - "memchr", "mio", "num_cpus", "pin-project-lite", "signal-hook-registry", - "socket2 0.4.9", + "socket2 0.5.5", "tokio-macros", - "windows-sys 0.42.0", + "windows-sys 0.48.0", ] [[package]] @@ -3965,20 +4033,20 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "1.8.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9724f9a975fb987ef7a3cd9be0350edcbe130698af5b8f7a631e23d42d052484" +checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 1.0.98", + "syn 2.0.41", ] [[package]] name = "tokio-native-tls" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" dependencies = [ "native-tls", "tokio", @@ -3986,9 +4054,9 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.24.0" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0d409377ff5b1e3ca6437aa86c1eb7d40c134bfec254e44c830defa92669db5" +checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ "rustls", "tokio", @@ -3996,9 +4064,9 @@ dependencies = [ [[package]] name = "tokio-stream" -version = "0.1.10" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6edf2d6bc038a43d31353570e27270603f4648d18f5ed10c0e179abe43255af" +checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" dependencies = [ "futures-core", "pin-project-lite", @@ -4007,27 +4075,46 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.8" +version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d" +checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15" dependencies = [ "bytes", "futures-core", "futures-sink", "futures-util", - "hashbrown 0.12.3", + "hashbrown 0.14.3", "pin-project-lite", "tokio", "tracing", ] [[package]] -name = "toml" -version = "0.5.9" +name = "toml_datetime" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" + +[[package]] +name = "toml_edit" +version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "serde", + "indexmap 2.1.0", + "toml_datetime", + "winnow", +] + +[[package]] +name = "toml_edit" +version = "0.20.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" +dependencies = [ + "indexmap 2.1.0", + "toml_datetime", + "winnow", ] [[package]] @@ -4038,11 +4125,10 @@ checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" [[package]] name = "tracing" -version = "0.1.35" +version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a400e31aa60b9d44a52a8ee0343b5b18566b03a8321e0d321f695cf56e940160" +checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ - "cfg-if", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -4050,29 +4136,29 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.22" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11c75893af559bc8e10716548bdef5cb2b983f8e637db9d0e15126b61b484ee2" +checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 1.0.98", + "syn 2.0.41", ] [[package]] name = "tracing-core" -version = "0.1.28" +version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b7358be39f2f274f322d2aaed611acc57f382e8eb1e5b48cb9ae30933495ce7" +checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" dependencies = [ "once_cell", ] [[package]] name = "try-lock" -version = "0.2.3" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "twox-hash" @@ -4087,27 +4173,27 @@ dependencies = [ [[package]] name = "typenum" -version = "1.15.0" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "unicode-bidi" -version = "0.3.8" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" +checksum = "6f2528f27a9eb2b21e69c95319b30bd0efd85d09c379741b0f78ea1d86be2416" [[package]] name = "unicode-ident" -version = "1.0.1" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c" +checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "unicode-normalization" -version = "0.1.21" +version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "854cbdc4f7bc6ae19c820d44abdc3277ac3e1b2b93db20a636825d9322fb60e6" +checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" dependencies = [ "tinyvec", ] @@ -4120,9 +4206,9 @@ checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" [[package]] name = "unicode-width" -version = "0.1.10" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" +checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" [[package]] name = "unicode_categories" @@ -4132,9 +4218,9 @@ checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e" [[package]] name = "universal-hash" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d3160b73c9a19f7e2939a2fdad446c57c1bbbbf4d919d3213ff1267a580d8b5" +checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" dependencies = [ "crypto-common", "subtle", @@ -4146,15 +4232,20 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + [[package]] name = "url" -version = "2.2.2" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" +checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633" dependencies = [ "form_urlencoded", "idna", - "matches", "percent-encoding", ] @@ -4172,9 +4263,9 @@ checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" [[package]] name = "uuid" -version = "1.4.1" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d" +checksum = "5e395fcf16a7a3d8127ec99782007af141946b4795001f876d54fb0d55978560" dependencies = [ "getrandom", "rand", @@ -4194,9 +4285,9 @@ dependencies = [ [[package]] name = "value-bag" -version = "1.4.0" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4d330786735ea358f3bc09eea4caa098569c1c93f342d9aca0514915022fe7e" +checksum = "4a72e1902dde2bd6441347de2b70b7f5d59bf157c6c62f0c44572607a1d55bbe" dependencies = [ "value-bag-serde1", "value-bag-sval2", @@ -4204,9 +4295,9 @@ dependencies = [ [[package]] name = "value-bag-serde1" -version = "1.4.0" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4735c95b4cca1447b448e2e2e87e98d7e7498f4da27e355cf7af02204521001d" +checksum = "07ba39dc791ecb35baad371a3fc04c6eab688c04937d2e0ac6c22b612c0357bf" dependencies = [ "erased-serde", "serde", @@ -4215,9 +4306,9 @@ dependencies = [ [[package]] name = "value-bag-sval2" -version = "1.4.0" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "859cb4f0ce7da6a118b559ba74b0e63bf569bea867c20ba457a6b1c886a04e97" +checksum = "c3e06c10810a57bbf45778d023d432a50a1daa7d185991ae06bcfb6c654d0945" dependencies = [ "sval", "sval_buffer", @@ -4242,9 +4333,9 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "walkdir" -version = "2.3.3" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36df944cda56c7d8d8b7496af378e6b16de9284591917d307c9b4d313c44e698" +checksum = "d71d857dc86794ca4c280d616f7da00d2dbfd8cd788846559a6813e6aa4b54ee" dependencies = [ "same-file", "winapi-util", @@ -4252,20 +4343,13 @@ dependencies = [ [[package]] name = "want" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" dependencies = [ - "log", "try-lock", ] -[[package]] -name = "wasi" -version = "0.10.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -4274,9 +4358,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.82" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc7652e3f6c4706c8d9cd54832c4a4ccb9b5336e2c3bd154d5cccfbf1c1f5f7d" +checksum = "0ed0d4f68a3015cc185aff4db9506a015f4b96f95303897bfa23f846db54064e" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -4284,24 +4368,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.82" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "662cd44805586bd52971b9586b1df85cdbbd9112e4ef4d8f41559c334dc6ac3f" +checksum = "1b56f625e64f3a1084ded111c4d5f477df9f8c92df113852fa5a374dbda78826" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 1.0.98", + "syn 2.0.41", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.32" +version = "0.4.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa76fb221a1f8acddf5b54ace85912606980ad661ac7a503b4570ffd3a624dad" +checksum = "ac36a15a220124ac510204aec1c3e5db8a22ab06fd6706d881dc6149f8ed9a12" dependencies = [ "cfg-if", "js-sys", @@ -4311,9 +4395,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.82" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b260f13d3012071dfb1512849c033b1925038373aea48ced3012c09df952c602" +checksum = "0162dbf37223cd2afce98f3d0785506dcb8d266223983e4b5b525859e6e182b2" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -4321,28 +4405,28 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.82" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5be8e654bdd9b79216c2929ab90721aa82faf65c48cdf08bdc4e7f51357b80da" +checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" dependencies = [ "proc-macro2", "quote", - "syn 1.0.98", + "syn 2.0.41", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.82" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6598dd0bd3c7d51095ff6531a5b23e02acdc81804e30d8f07afb77b7215a140a" +checksum = "7ab9b36309365056cd639da3134bf87fa8f3d86008abf99e612384a6eecd459f" [[package]] name = "wasm-streams" -version = "0.2.3" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bbae3363c08332cadccd13b67db371814cd214c2524020932f0804b8cf7c078" +checksum = "b4609d447824375f43e1ffbc051b50ad8f4b3ae8219680c94452ea05eb240ac7" dependencies = [ "futures-util", "js-sys", @@ -4353,9 +4437,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.59" +version = "0.3.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed055ab27f941423197eb86b2035720b1a3ce40504df082cac2ecc6ed73335a1" +checksum = "50c24a44ec86bb68fbecd1b3efed7e85ea5621b39b35ef2766b66cd984f8010f" dependencies = [ "js-sys", "wasm-bindgen", @@ -4363,9 +4447,9 @@ dependencies = [ [[package]] name = "webbrowser" -version = "0.8.10" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd222aa310eb7532e3fd427a5d7db7e44bc0b0cf1c1e21139c345325511a85b6" +checksum = "82b2391658b02c27719fc5a0a73d6e696285138e8b12fba9d4baa70451023c71" dependencies = [ "core-foundation", "home", @@ -4380,41 +4464,39 @@ dependencies = [ [[package]] name = "webpki" -version = "0.22.0" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd" +checksum = "ed63aea5ce73d0ff405984102c42de94fc55a6b75765d621c65262469b3c9b53" dependencies = [ - "ring", - "untrusted", + "ring 0.17.7", + "untrusted 0.9.0", ] [[package]] name = "webpki-roots" -version = "0.22.6" +version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" +checksum = "b03058f88386e5ff5310d9111d53f48b17d732b401aeb83a8d5190f2ac459338" dependencies = [ - "webpki", + "rustls-webpki 0.100.3", ] [[package]] name = "webpki-roots" -version = "0.23.1" +version = "0.25.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b03058f88386e5ff5310d9111d53f48b17d732b401aeb83a8d5190f2ac459338" -dependencies = [ - "rustls-webpki", -] +checksum = "1778a42e8b3b90bff8d0f5032bf22250792889a5cdc752aa0020c84abe3aaf10" [[package]] name = "which" -version = "4.2.5" +version = "4.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c4fb54e6113b6a8772ee41c3404fb0301ac79604489467e0a9ce1f3e97c24ae" +checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" dependencies = [ "either", - "lazy_static", - "libc", + "home", + "once_cell", + "rustix", ] [[package]] @@ -4435,9 +4517,9 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-util" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" +checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" dependencies = [ "winapi", ] @@ -4449,49 +4531,39 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] -name = "windows-sys" -version = "0.36.1" +name = "windows-core" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" +checksum = "f1f8cf84f35d2db49a46868f947758c7a1138116f7fac3bc844f43ade1292e64" dependencies = [ - "windows_aarch64_msvc 0.36.1", - "windows_i686_gnu 0.36.1", - "windows_i686_msvc 0.36.1", - "windows_x86_64_gnu 0.36.1", - "windows_x86_64_msvc 0.36.1", + "windows-targets 0.48.5", ] [[package]] name = "windows-sys" -version = "0.42.0" +version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" dependencies = [ - "windows_aarch64_gnullvm 0.42.2", - "windows_aarch64_msvc 0.42.2", - "windows_i686_gnu 0.42.2", - "windows_i686_msvc 0.42.2", - "windows_x86_64_gnu 0.42.2", - "windows_x86_64_gnullvm 0.42.2", - "windows_x86_64_msvc 0.42.2", + "windows-targets 0.42.2", ] [[package]] name = "windows-sys" -version = "0.45.0" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets 0.42.2", + "windows-targets 0.48.5", ] [[package]] name = "windows-sys" -version = "0.48.0" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.48.0", + "windows-targets 0.52.0", ] [[package]] @@ -4511,17 +4583,32 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.48.0" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5" +checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" dependencies = [ - "windows_aarch64_gnullvm 0.48.0", - "windows_aarch64_msvc 0.48.0", - "windows_i686_gnu 0.48.0", - "windows_i686_msvc 0.48.0", - "windows_x86_64_gnu 0.48.0", - "windows_x86_64_gnullvm 0.48.0", - "windows_x86_64_msvc 0.48.0", + "windows_aarch64_gnullvm 0.52.0", + "windows_aarch64_msvc 0.52.0", + "windows_i686_gnu 0.52.0", + "windows_i686_msvc 0.52.0", + "windows_x86_64_gnu 0.52.0", + "windows_x86_64_gnullvm 0.52.0", + "windows_x86_64_msvc 0.52.0", ] [[package]] @@ -4532,15 +4619,15 @@ checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] -name = "windows_aarch64_msvc" -version = "0.36.1" +name = "windows_aarch64_gnullvm" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" +checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" [[package]] name = "windows_aarch64_msvc" @@ -4550,15 +4637,15 @@ checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] -name = "windows_i686_gnu" -version = "0.36.1" +name = "windows_aarch64_msvc" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" +checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" [[package]] name = "windows_i686_gnu" @@ -4568,15 +4655,15 @@ checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] -name = "windows_i686_msvc" -version = "0.36.1" +name = "windows_i686_gnu" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" +checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" [[package]] name = "windows_i686_msvc" @@ -4586,15 +4673,15 @@ checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] -name = "windows_x86_64_gnu" -version = "0.36.1" +name = "windows_i686_msvc" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" +checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" [[package]] name = "windows_x86_64_gnu" @@ -4604,9 +4691,15 @@ checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" [[package]] name = "windows_x86_64_gnullvm" @@ -4616,15 +4709,15 @@ checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_gnullvm" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] -name = "windows_x86_64_msvc" -version = "0.36.1" +name = "windows_x86_64_gnullvm" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" +checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" [[package]] name = "windows_x86_64_msvc" @@ -4634,17 +4727,33 @@ checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" -version = "0.48.0" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" +checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" + +[[package]] +name = "winnow" +version = "0.5.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c830786f7720c2fd27a1a0e27a709dbd3c4d009b56d098fc742d4f4eab91fe2" +dependencies = [ + "memchr", +] [[package]] name = "winreg" -version = "0.10.1" +version = "0.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d" +checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" dependencies = [ - "winapi", + "cfg-if", + "windows-sys 0.48.0", ] [[package]] @@ -4656,8 +4765,28 @@ dependencies = [ "tap", ] +[[package]] +name = "zerocopy" +version = "0.7.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c4061bedbb353041c12f413700357bec76df2c7e2ca8e4df8bac24c6bf68e3d" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3c129550b3e6de3fd0ba67ba5c81818f9805e58b8d7fee80a3a59d2c9fc601a" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.41", +] + [[package]] name = "zeroize" -version = "1.5.7" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c394b5bd0c6f669e7275d9c20aa90ae064cb22e75a1cad54e1b34088034b149f" +checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" diff --git a/README.md b/README.md index b21967c20..4b0902d0d 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@

- - - Lagon logo + + + Lagoss logo +

Lagoss

Deploy Serverless Functions at the Edge

- - +

@@ -19,16 +19,14 @@ ## About -Lagon is an open-source runtime and platform that allows developers to run TypeScript and JavaScript Serverless Functions close to users. +Lagoss is a fork of [Lagon](https://github.com/lagonapp/lagon) an open-source runtime and platform that allows developers to run TypeScript and JavaScript Serverless Functions. -> **Note**: Lagon is in Alpha. Get access to Lagon Cloud via the [waitlist](https://tally.so/r/n9q1Rp) - -Current status: - -- Dev: In heavy development, features are being added and APIs have breaking changes -- **Alpha**: Missing features and bugs to fix, progressive access to Lagon Cloud ([waitlist](https://tally.so/r/n9q1Rp)) -- ~Beta~: Stable APIs, last features are being added, Lagon Cloud available without a waitlist -- ~General Availability~: Cloud and self-hosted versions available for production usage +> [!NOTE] +> The project was forked from [Lagon](https://github.com/lagonapp/lagon) with the +> intention to continue development. There is currently a public testing instance +> deployed at . However it should be used for basic +> testing only and data might be deleted at any point. If you want a proper setup, +> please deploy your own instance => [Install my own instance](https://docs.lagoss.com/self-hosting/installation). ## Packages @@ -39,8 +37,7 @@ Current status: - **[runtime](./crates/runtime)** Rust JavaScript Runtime, using V8 Isolates - **[serverless](./crates/serverless)** HTTP entrypoint for Functions, using the Runtime and exporting metrics - **[ui](./packages/ui)** Design system -- **[wpt-runner](./crates/wpt-runner)** Run web-platform-tests on Lagon -- **[www](./www)** Public website +- **[wpt-runner](./crates/wpt-runner)** Run web-platform-tests on Lagoss ## Features @@ -51,28 +48,20 @@ Current status: - CLI to manage Functions and develop locally - Deploy at the Edge using the Cloud version, or self-host it -## Roadmap - -The roadmap is accessible to anyone on GitHub. Feel free to open an issue to discuss new features that you would like to see implemented. - -[See the roadmap on GitHub](https://github.com/orgs/lagonapp/projects/1) - ## Contributing -[See the contributing guide](https://docs.lagon.app/contributing) +[See the contributing guide](https://docs.lagoss.com/contributing) ## How it works -Lagon uses V8 Isolates, which are sandboxed environments used to run plain JavaScript. That means each Function's memory is isolated from each others, and you can run a lot of them at the same time with very few resources. [Node.js](https://nodejs.org/), [Electron](https://www.electronjs.org/), [Deno](https://deno.land/) (and [Deno Deploy](https://deno.com/deploy)), [Cloudflare Workers](https://workers.cloudflare.com/) are also using V8 Isolates to execute JavaScript. +Lagoss uses V8 Isolates, which are sandboxed environments used to run plain JavaScript. That means each Function's memory is isolated from each others, and you can run a lot of them at the same time with very few resources. [Node.js](https://nodejs.org/), [Electron](https://www.electronjs.org/), [Deno](https://deno.land/) (and [Deno Deploy](https://deno.com/deploy)), [Cloudflare Workers](https://workers.cloudflare.com/) are also using V8 Isolates to execute JavaScript. Starting an Isolate is a lot faster than starting a whole Node.js process, which allows for almost free cold starts. -## Sponsors ❤️ - -Thanks a lot to every current and past sponsor! +## Installation -![Sponsors list](./assets/sponsors.png) +Learn how you can [install](https://docs.lagoss.com/self-hosting/installation) your own Lagoss instance. ## License -[GNU AGPLv3](./LICENSE) +[GNU AGPLv3](./LICENSE) \ No newline at end of file diff --git a/assets/sponsors.png b/assets/sponsors.png deleted file mode 100644 index 4eb90a633..000000000 Binary files a/assets/sponsors.png and /dev/null differ diff --git a/crates/cli/CHANGELOG.md b/crates/cli/CHANGELOG.md index a75a8b378..1a157efcf 100644 --- a/crates/cli/CHANGELOG.md +++ b/crates/cli/CHANGELOG.md @@ -1,4 +1,30 @@ -# @lagon/cli +# @lagoss/cli + +## 0.9.1 + +### Patch Changes + +- [#20](https://github.com/lagossapp/lagoss/pull/20) [`64e0037`](https://github.com/lagossapp/lagoss/commit/64e0037105f27fdedacda8f16125fa5fb796a342) Thanks [@anbraten](https://github.com/anbraten)! - Fix release + +## 0.9.0 + +### Minor Changes + +- [#17](https://github.com/lagossapp/lagoss/pull/17) [`d248a67`](https://github.com/lagossapp/lagoss/commit/d248a67c6f90a278700c3147ee815bbbb553fa49) Thanks [@anbraten](https://github.com/anbraten)! - Add auto-installation for cli binary + +### Patch Changes + +- [#18](https://github.com/lagossapp/lagoss/pull/18) [`0066bcf`](https://github.com/lagossapp/lagoss/commit/0066bcf7e24c81d2778c5c39fd05493afb985bd3) Thanks [@anbraten](https://github.com/anbraten)! - Create tags for private packages + +## 0.8.0 + +### Minor Changes + +- [#14](https://github.com/lagossapp/lagoss/pull/14) [`7a9b7da`](https://github.com/lagossapp/lagoss/commit/7a9b7daef8d11137f7e7b6b954ab0d6f0a37d443) Thanks [@anbraten](https://github.com/anbraten)! - Renamed from lagon to lagoss + +### Patch Changes + +- [#15](https://github.com/lagossapp/lagoss/pull/15) [`55eee53`](https://github.com/lagossapp/lagoss/commit/55eee53d29aacf7134e1efced4dcac3ff5450585) Thanks [@anbraten](https://github.com/anbraten)! - Fix release workflow ## 0.7.8 diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index cc5bcf691..eefabc584 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -1,13 +1,13 @@ [package] -name = "lagon-cli" +name = "lagoss-cli" version = "0.1.0" edition = "2021" [dependencies] -lagon-runtime = { path = "../runtime" } -lagon-runtime-http = { path = "../runtime_http" } -lagon-runtime-isolate = { path = "../runtime_isolate" } -lagon-runtime-utils = { path = "../runtime_utils" } +lagoss-runtime = { path = "../runtime" } +lagoss-runtime-http = { path = "../runtime_http" } +lagoss-runtime-isolate = { path = "../runtime_isolate" } +lagoss-runtime-utils = { path = "../runtime_utils" } clap = { version = "4.3.19", features = ["derive"] } dialoguer = { version = "0.10.4", features = ["password"] } indicatif = "0.17.5" diff --git a/crates/cli/npm/binary-install.js b/crates/cli/npm/binary-install.js index bd0482d71..438fa7db7 100644 --- a/crates/cli/npm/binary-install.js +++ b/crates/cli/npm/binary-install.js @@ -53,7 +53,11 @@ export class Binary { return this.binaryPath; } - install() { + _isInstalled() { + return existsSync(this._getBinaryPath()); + } + + async install() { const dir = this._getInstallDirectory(); if (!existsSync(dir)) { mkdirSync(dir, { recursive: true }); @@ -69,30 +73,29 @@ export class Binary { console.log(`Downloading release from ${this.url}`); - return axios({ url: this.url, responseType: 'stream' }) - .then(res => { - const writer = tar.x({ strip: 1, C: this.binaryDirectory }); - - return new Promise((resolve, reject) => { - res.data.pipe(writer); - let error = null; - writer.on('error', err => { - error = err; - reject(err); - }); - writer.on('close', () => { - if (!error) { - resolve(true); - } - }); + try { + const res = await axios({ url: this.url, responseType: 'stream' }); + + const writer = tar.x({ strip: 1, C: this.binaryDirectory }); + + await new Promise((resolve, reject) => { + res.data.pipe(writer); + let error = null; + writer.on('error', err => { + error = err; + reject(err); + }); + writer.on('close', () => { + if (!error) { + resolve(true); + } }); - }) - .then(() => { - console.log(`${this.name} has been installed!`); - }) - .catch(e => { - error(`Error fetching release: ${e.message}`); }); + + console.log(`${this.name} has been installed!`); + } catch (e) { + error(`Error fetching release: ${e.message}`); + } } uninstall() { @@ -102,7 +105,11 @@ export class Binary { } } - run() { + async run(shouldInstall = true) { + if (!this._isInstalled() && shouldInstall) { + await this.install(); + } + const binaryPath = this._getBinaryPath(); const [, , ...args] = process.argv; diff --git a/crates/cli/npm/getBinary.js b/crates/cli/npm/getBinary.js index 23fb72863..d0f572efa 100644 --- a/crates/cli/npm/getBinary.js +++ b/crates/cli/npm/getBinary.js @@ -9,36 +9,36 @@ function getPlatform() { if (type === 'Windows_NT') { return { - platform: 'lagon-win-x64', - name: 'lagon.exe', + platform: 'lagoss-win-x64', + name: 'lagoss.exe', }; } if (type === 'Linux' && arch === 'x64') { return { - platform: 'lagon-linux-x64', - name: 'lagon', + platform: 'lagoss-linux-x64', + name: 'lagoss', }; } if (type === 'Linux' && arch === 'arm64') { return { - platform: 'lagon-linux-arm64', - name: 'lagon', + platform: 'lagoss-linux-arm64', + name: 'lagoss', }; } if (type === 'Darwin' && arch === 'x64') { return { - platform: 'lagon-darwin-x64', - name: 'lagon', + platform: 'lagoss-darwin-x64', + name: 'lagoss', }; } if (type === 'Darwin' && arch === 'arm64') { return { - platform: 'lagon-darwin-arm64', - name: 'lagon', + platform: 'lagoss-darwin-arm64', + name: 'lagoss', }; } @@ -51,8 +51,8 @@ export function getBinary() { const { name: packageName, version } = customRequire('../package.json'); - const url = `https://github.com/lagonapp/lagon/releases/download/${packageName}@${version}/${platform}.tar.gz`; - const installDirectory = path.join(os.homedir(), '.lagon'); + const url = `https://github.com/lagossapp/lagoss/releases/download/${packageName}@${version}/${platform}.tar.gz`; + const installDirectory = path.join(os.homedir(), '.lagoss'); return new Binary(url, { name, installDirectory }); } diff --git a/crates/cli/package.json b/crates/cli/package.json index 91cec75bb..9258f8c03 100644 --- a/crates/cli/package.json +++ b/crates/cli/package.json @@ -1,13 +1,13 @@ { - "name": "@lagon/cli", - "version": "0.7.8", - "description": "CLI for Lagon", + "name": "@lagoss/cli", + "version": "0.9.1", + "description": "CLI for Lagoss", "type": "module", "files": [ "npm" ], "bin": { - "lagon": "./npm/run.js" + "lagoss": "./npm/run.js" }, "scripts": { "build": "cargo build", diff --git a/crates/cli/src/commands/build.rs b/crates/cli/src/commands/build.rs index 79e32afa7..5060b20d3 100644 --- a/crates/cli/src/commands/build.rs +++ b/crates/cli/src/commands/build.rs @@ -11,8 +11,8 @@ pub fn build( let (root, function_config) = resolve_path(path, client, public_dir)?; let (index, assets) = bundle_function(&function_config, &root, true)?; - let end_progress = print_progress("Writting files"); - let root = root.join(".lagon"); + let end_progress = print_progress("Writing files"); + let root = root.join(".lagoss"); fs::create_dir_all(&root)?; fs::write(root.join("index.js"), index)?; @@ -33,7 +33,9 @@ pub fn build( println!(" {} Build successful!", style("◼").magenta()); println!( " {}", - style(format!("You can find it in {:?}", root)).black().bright() + style(format!("You can find it in {:?}", root)) + .black() + .bright() ); Ok(()) diff --git a/crates/cli/src/commands/deploy.rs b/crates/cli/src/commands/deploy.rs index b23ee3bd6..d01351e5c 100644 --- a/crates/cli/src/commands/deploy.rs +++ b/crates/cli/src/commands/deploy.rs @@ -60,7 +60,7 @@ pub async fn deploy( if config.token.is_none() { return Err(anyhow!( - "You are not logged in. Please log in with `lagon login`", + "You are not logged in. Please log in with `lagoss login`", )); } diff --git a/crates/cli/src/commands/dev.rs b/crates/cli/src/commands/dev.rs index 8ab5c149d..20849df0f 100644 --- a/crates/cli/src/commands/dev.rs +++ b/crates/cli/src/commands/dev.rs @@ -6,16 +6,16 @@ use envfile::EnvFile; use hyper::server::conn::AddrStream; use hyper::service::{make_service_fn, service_fn}; use hyper::{Body, Request, Response, Server}; -use lagon_runtime::{options::RuntimeOptions, Runtime}; -use lagon_runtime_http::{ - RunResult, X_FORWARDED_FOR, X_FORWARDED_HOST, X_FORWARDED_PROTO, X_LAGON_ID, X_LAGON_REGION, +use lagoss_runtime::{options::RuntimeOptions, Runtime}; +use lagoss_runtime_http::{ + RunResult, X_FORWARDED_FOR, X_FORWARDED_HOST, X_FORWARDED_PROTO, X_LAGOSS_ID, X_LAGOSS_REGION, X_REAL_IP, }; -use lagon_runtime_isolate::{options::IsolateOptions, Isolate}; -use lagon_runtime_isolate::{IsolateEvent, IsolateRequest}; -use lagon_runtime_utils::assets::{find_asset, handle_asset}; -use lagon_runtime_utils::response::{handle_response, ResponseEvent, FAVICON_URL}; -use lagon_runtime_utils::Deployment; +use lagoss_runtime_isolate::{options::IsolateOptions, Isolate}; +use lagoss_runtime_isolate::{IsolateEvent, IsolateRequest}; +use lagoss_runtime_utils::assets::{find_asset, handle_asset}; +use lagoss_runtime_utils::response::{handle_response, ResponseEvent, FAVICON_URL}; +use lagoss_runtime_utils::Deployment; use notify::event::ModifyKind; use notify::{Config, EventKind, RecommendedWatcher, RecursiveMode, Watcher}; use std::collections::HashMap; @@ -123,8 +123,8 @@ async fn handle_request( parts.headers.insert(X_FORWARDED_HOST, "localhost".parse()?); parts.headers.insert(X_REAL_IP, ip.parse()?); - parts.headers.insert(X_LAGON_REGION, LOCAL_REGION.parse()?); - parts.headers.insert(X_LAGON_ID, "".parse()?); + parts.headers.insert(X_LAGOSS_REGION, LOCAL_REGION.parse()?); + parts.headers.insert(X_LAGOSS_ID, "".parse()?); let request = (parts, body); diff --git a/crates/cli/src/commands/link.rs b/crates/cli/src/commands/link.rs index cb0f62879..b78cfa370 100644 --- a/crates/cli/src/commands/link.rs +++ b/crates/cli/src/commands/link.rs @@ -11,7 +11,7 @@ pub async fn link(directory: Option) -> Result<()> { if config.token.is_none() { return Err(anyhow!( - "You are not logged in. Please log in with `lagon login`", + "You are not logged in. Please log in with `lagoss login`", )); } diff --git a/crates/cli/src/commands/ls.rs b/crates/cli/src/commands/ls.rs index 1b86a1f45..eb52d96af 100644 --- a/crates/cli/src/commands/ls.rs +++ b/crates/cli/src/commands/ls.rs @@ -30,7 +30,7 @@ pub async fn ls(directory: Option) -> Result<()> { if config.token.is_none() { return Err(anyhow!( - "You are not logged in. Please log in with `lagon login`", + "You are not logged in. Please log in with `lagoss login`", )); } @@ -63,7 +63,7 @@ pub async fn ls(directory: Option) -> Result<()> { println!( "{} Production: {} {}", style("●").black().bright(), - style(format!("https://{}.lagon.dev", deployment.id)) + style(format!("https://{}.lagoss.com", deployment.id)) .blue() .underlined(), style(format!("({})", deployment.created_at)) @@ -74,7 +74,7 @@ pub async fn ls(directory: Option) -> Result<()> { println!( "{} Preview: {} {}", style("○").black().bright(), - style(format!("https://{}.lagon.dev", deployment.id)) + style(format!("https://{}.lagoss.com", deployment.id)) .blue() .underlined(), style(format!("({})", deployment.created_at)) diff --git a/crates/cli/src/commands/promote.rs b/crates/cli/src/commands/promote.rs index 472bc86b7..d35d39258 100644 --- a/crates/cli/src/commands/promote.rs +++ b/crates/cli/src/commands/promote.rs @@ -22,7 +22,7 @@ pub async fn promote(deployment_id: String, directory: Option) -> Resul if config.token.is_none() { return Err(anyhow!( - "You are not logged in. Please log in with `lagon login`", + "You are not logged in. Please log in with `lagoss login`", )); } diff --git a/crates/cli/src/commands/rm.rs b/crates/cli/src/commands/rm.rs index d7b540854..ef482f3cb 100644 --- a/crates/cli/src/commands/rm.rs +++ b/crates/cli/src/commands/rm.rs @@ -21,7 +21,7 @@ pub async fn rm(directory: Option) -> Result<()> { if config.token.is_none() { return Err(anyhow!( - "You are not logged in. Please log in with `lagon login`", + "You are not logged in. Please log in with `lagoss login`", )); } diff --git a/crates/cli/src/commands/undeploy.rs b/crates/cli/src/commands/undeploy.rs index 60db18291..49cc221a1 100644 --- a/crates/cli/src/commands/undeploy.rs +++ b/crates/cli/src/commands/undeploy.rs @@ -22,7 +22,7 @@ pub async fn undeploy(deployment_id: String, directory: Option) -> Resu if config.token.is_none() { return Err(anyhow!( - "You are not logged in. Please log in with `lagon login`", + "You are not logged in. Please log in with `lagoss login`", )); } diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 6e69fd80f..184dca812 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -25,9 +25,9 @@ struct Cli { #[derive(Subcommand, Debug)] enum Commands { - /// Log in to Lagon + /// Log in to Lagoss Login, - /// Log out of Lagon + /// Log out of Lagoss Logout, /// Deploy a new or existing Function Deploy { diff --git a/crates/cli/src/utils/config.rs b/crates/cli/src/utils/config.rs index 6e057b0aa..22f4baa50 100644 --- a/crates/cli/src/utils/config.rs +++ b/crates/cli/src/utils/config.rs @@ -10,13 +10,13 @@ fn get_site_url() -> String { #[cfg(not(debug_assertions))] fn get_site_url() -> String { - "https://dash.lagon.app".to_string() + "https://app.lagoss.com".to_string() } fn get_config_path() -> Result { Ok(dirs::home_dir() .ok_or_else(|| anyhow!("Could not find home directory"))? - .join(".lagon") + .join(".lagoss") .join("config.json")) } diff --git a/crates/cli/src/utils/deployments.rs b/crates/cli/src/utils/deployments.rs index 4ba3dc2d6..d5c9b70a9 100644 --- a/crates/cli/src/utils/deployments.rs +++ b/crates/cli/src/utils/deployments.rs @@ -156,7 +156,7 @@ impl FunctionConfig { let path = get_function_config_path(root); if !path.exists() { - fs::create_dir_all(root.join(".lagon"))?; + fs::create_dir_all(root.join(".lagoss"))?; } let content = serde_json::to_string(self)?; @@ -221,7 +221,7 @@ pub fn get_root(root: Option) -> PathBuf { } pub fn get_function_config_path(root: &Path) -> PathBuf { - root.join(".lagon").join("config.json") + root.join(".lagoss").join("config.json") } fn esbuild(file: &Path, root: &Path, prod: bool) -> Result> { @@ -237,7 +237,7 @@ fn esbuild(file: &Path, root: &Path, prod: bool) -> Result> { .arg("--format=esm") .arg("--target=esnext") .arg("--platform=browser") - .arg("--conditions=lagon,worker") + .arg("--conditions=lagoss,worker") .arg("--loader:.wasm=binary") .output()?; diff --git a/crates/cli/src/utils/trpc.rs b/crates/cli/src/utils/trpc.rs index d35991120..8aaaf6025 100644 --- a/crates/cli/src/utils/trpc.rs +++ b/crates/cli/src/utils/trpc.rs @@ -63,10 +63,10 @@ impl TrpcClient { format!("{}/api/trpc/{}{}", self.config.site_url.clone(), key, input,), ) .header("content-type", "application/json") - .header("x-lagon-token", self.config.token.as_ref().unwrap()); + .header("x-lagoss-token", self.config.token.as_ref().unwrap()); if let Some(organization_id) = &self.organization_id { - builder = builder.header("x-lagon-organization-id", organization_id); + builder = builder.header("x-lagoss-organization-id", organization_id); } let response = builder.send().await?; @@ -95,10 +95,10 @@ impl TrpcClient { format!("{}/api/trpc/{}", self.config.site_url.clone(), key), ) .header("content-type", "application/json") - .header("x-lagon-token", self.config.token.as_ref().unwrap()); + .header("x-lagoss-token", self.config.token.as_ref().unwrap()); if let Some(organization_id) = &self.organization_id { - builder = builder.header("x-lagon-organization-id", organization_id); + builder = builder.header("x-lagoss-organization-id", organization_id); } let response = builder.body(body).send().await?; diff --git a/crates/runtime/CHANGELOG.md b/crates/runtime/CHANGELOG.md index 27583547b..4c9947240 100644 --- a/crates/runtime/CHANGELOG.md +++ b/crates/runtime/CHANGELOG.md @@ -1,4 +1,20 @@ -# @lagon/runtime +# @lagoss/runtime + +## 0.4.1 + +### Patch Changes + +- [#18](https://github.com/lagossapp/lagoss/pull/18) [`0066bcf`](https://github.com/lagossapp/lagoss/commit/0066bcf7e24c81d2778c5c39fd05493afb985bd3) Thanks [@anbraten](https://github.com/anbraten)! - Create tags for private packages + +## 0.4.0 + +### Minor Changes + +- [#14](https://github.com/lagossapp/lagoss/pull/14) [`7a9b7da`](https://github.com/lagossapp/lagoss/commit/7a9b7daef8d11137f7e7b6b954ab0d6f0a37d443) Thanks [@anbraten](https://github.com/anbraten)! - Renamed from lagon to lagoss + +### Patch Changes + +- [#15](https://github.com/lagossapp/lagoss/pull/15) [`55eee53`](https://github.com/lagossapp/lagoss/commit/55eee53d29aacf7134e1efced4dcac3ff5450585) Thanks [@anbraten](https://github.com/anbraten)! - Fix release workflow ## 0.3.19 diff --git a/crates/runtime/Cargo.toml b/crates/runtime/Cargo.toml index 7957703dc..8bba018ad 100644 --- a/crates/runtime/Cargo.toml +++ b/crates/runtime/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "lagon-runtime" +name = "lagoss-runtime" version = "0.1.0" edition = "2021" @@ -10,12 +10,12 @@ v8 = "0.74.3" tokio = { version = "1", features = ["rt", "time", "macros"] } flume = "0.10.14" httptest = "0.15.4" -lagon-runtime-http = { path = "../runtime_http" } -lagon-runtime-isolate = { path = "../runtime_isolate" } +lagoss-runtime-http = { path = "../runtime_http" } +lagoss-runtime-isolate = { path = "../runtime_isolate" } log = { version = "0.4.19", features = ["std", "kv_unstable", "kv_unstable_serde"] } serial_test = "2.0.0" hyper = "0.14.27" [features] default = [] -ignore-snapshot = ["lagon-runtime-isolate/ignore-snapshot"] +ignore-snapshot = ["lagoss-runtime-isolate/ignore-snapshot"] diff --git a/crates/runtime/package.json b/crates/runtime/package.json index e9d0f458f..64b013226 100644 --- a/crates/runtime/package.json +++ b/crates/runtime/package.json @@ -1,7 +1,7 @@ { - "name": "@lagon/runtime", - "version": "0.3.19", - "description": "JavaScript Serverless Runtime for Lagon", + "name": "@lagoss/runtime", + "version": "0.4.1", + "description": "JavaScript Serverless Runtime for Lagoss", "private": true, "scripts": { "build": "cargo build", diff --git a/crates/runtime/tests/allow_codegen.rs b/crates/runtime/tests/allow_codegen.rs index 8e540b894..3e4832122 100644 --- a/crates/runtime/tests/allow_codegen.rs +++ b/crates/runtime/tests/allow_codegen.rs @@ -1,5 +1,5 @@ use hyper::{header::CONTENT_TYPE, Body, Request, Response}; -use lagon_runtime_isolate::options::IsolateOptions; +use lagoss_runtime_isolate::options::IsolateOptions; mod utils; diff --git a/crates/runtime/tests/async_context.rs b/crates/runtime/tests/async_context.rs index 412699266..2aecf0ebf 100644 --- a/crates/runtime/tests/async_context.rs +++ b/crates/runtime/tests/async_context.rs @@ -1,5 +1,5 @@ use hyper::{header::CONTENT_TYPE, Body, Request, Response}; -use lagon_runtime_isolate::options::IsolateOptions; +use lagoss_runtime_isolate::options::IsolateOptions; mod utils; diff --git a/crates/runtime/tests/compression.rs b/crates/runtime/tests/compression.rs index e5d4ad4e7..6840bfa8e 100644 --- a/crates/runtime/tests/compression.rs +++ b/crates/runtime/tests/compression.rs @@ -1,6 +1,6 @@ use hyper::{header::CONTENT_TYPE, Body, Request, Response}; -use lagon_runtime_http::RunResult; -use lagon_runtime_isolate::options::IsolateOptions; +use lagoss_runtime_http::RunResult; +use lagoss_runtime_isolate::options::IsolateOptions; mod utils; diff --git a/crates/runtime/tests/crypto.rs b/crates/runtime/tests/crypto.rs index fb2edebdf..8ed1ce718 100644 --- a/crates/runtime/tests/crypto.rs +++ b/crates/runtime/tests/crypto.rs @@ -1,6 +1,6 @@ use hyper::{header::CONTENT_TYPE, Body, Request, Response}; -use lagon_runtime_http::RunResult; -use lagon_runtime_isolate::options::IsolateOptions; +use lagoss_runtime_http::RunResult; +use lagoss_runtime_isolate::options::IsolateOptions; use std::time::Duration; mod utils; diff --git a/crates/runtime/tests/disallow_codegen.rs b/crates/runtime/tests/disallow_codegen.rs index fe350676e..bbe337d4e 100644 --- a/crates/runtime/tests/disallow_codegen.rs +++ b/crates/runtime/tests/disallow_codegen.rs @@ -1,6 +1,6 @@ use hyper::Request; -use lagon_runtime_http::RunResult; -use lagon_runtime_isolate::options::IsolateOptions; +use lagoss_runtime_http::RunResult; +use lagoss_runtime_isolate::options::IsolateOptions; mod utils; diff --git a/crates/runtime/tests/errors.rs b/crates/runtime/tests/errors.rs index 6afc3434f..51b08c571 100644 --- a/crates/runtime/tests/errors.rs +++ b/crates/runtime/tests/errors.rs @@ -1,6 +1,6 @@ use hyper::Request; -use lagon_runtime_http::RunResult; -use lagon_runtime_isolate::options::IsolateOptions; +use lagoss_runtime_http::RunResult; +use lagoss_runtime_isolate::options::IsolateOptions; use std::time::Duration; mod utils; diff --git a/crates/runtime/tests/fetch.rs b/crates/runtime/tests/fetch.rs index 1040e9e04..b719f7ff3 100644 --- a/crates/runtime/tests/fetch.rs +++ b/crates/runtime/tests/fetch.rs @@ -1,7 +1,7 @@ use httptest::{matchers::*, responders::*, Expectation, Server}; use hyper::{header::CONTENT_TYPE, Body, Request, Response}; -use lagon_runtime_http::RunResult; -use lagon_runtime_isolate::options::IsolateOptions; +use lagoss_runtime_http::RunResult; +use lagoss_runtime_isolate::options::IsolateOptions; mod utils; diff --git a/crates/runtime/tests/promises.rs b/crates/runtime/tests/promises.rs index ed2204fdd..2441f5dcb 100644 --- a/crates/runtime/tests/promises.rs +++ b/crates/runtime/tests/promises.rs @@ -1,6 +1,6 @@ use httptest::{matchers::*, responders::*, Expectation, Server}; use hyper::{header::CONTENT_TYPE, Body, Request, Response}; -use lagon_runtime_isolate::options::IsolateOptions; +use lagoss_runtime_isolate::options::IsolateOptions; mod utils; diff --git a/crates/runtime/tests/runtime.rs b/crates/runtime/tests/runtime.rs index bd59bcd3c..4b2ed0585 100644 --- a/crates/runtime/tests/runtime.rs +++ b/crates/runtime/tests/runtime.rs @@ -2,8 +2,8 @@ use hyper::{ header::{CONTENT_TYPE, HOST}, Body, Method, Request, Response, }; -use lagon_runtime_http::{RunResult, StreamResult}; -use lagon_runtime_isolate::options::IsolateOptions; +use lagoss_runtime_http::{RunResult, StreamResult}; +use lagoss_runtime_isolate::options::IsolateOptions; mod utils; diff --git a/crates/runtime/tests/streams.rs b/crates/runtime/tests/streams.rs index 0f817bc64..37cea8da7 100644 --- a/crates/runtime/tests/streams.rs +++ b/crates/runtime/tests/streams.rs @@ -1,6 +1,6 @@ use hyper::{Request, Response}; -use lagon_runtime_http::{RunResult, StreamResult}; -use lagon_runtime_isolate::options::IsolateOptions; +use lagoss_runtime_http::{RunResult, StreamResult}; +use lagoss_runtime_isolate::options::IsolateOptions; mod utils; @@ -89,7 +89,7 @@ async fn custom_response() { { status: 201, headers: { - 'x-lagon': 'test', + 'x-lagoss': 'test', }, }, ); @@ -109,7 +109,7 @@ async fn custom_response() { utils::assert_run_result( &receiver, RunResult::Stream(StreamResult::Start( - Response::builder().status(201).header("x-lagon", "test"), + Response::builder().status(201).header("x-lagoss", "test"), )), ) .await; diff --git a/crates/runtime/tests/timers.rs b/crates/runtime/tests/timers.rs index 4b46a05a8..f6e02ed14 100644 --- a/crates/runtime/tests/timers.rs +++ b/crates/runtime/tests/timers.rs @@ -1,5 +1,5 @@ use hyper::{header::CONTENT_TYPE, Body, Request, Response}; -use lagon_runtime_isolate::options::IsolateOptions; +use lagoss_runtime_isolate::options::IsolateOptions; use serial_test::serial; mod utils; diff --git a/crates/runtime/tests/utils/mod.rs b/crates/runtime/tests/utils/mod.rs index 85722e019..ff811a5a6 100644 --- a/crates/runtime/tests/utils/mod.rs +++ b/crates/runtime/tests/utils/mod.rs @@ -2,9 +2,9 @@ use hyper::{ http::{response::Builder, Request}, Body, }; -use lagon_runtime::{options::RuntimeOptions, Runtime}; -use lagon_runtime_http::{RunResult, StreamResult}; -use lagon_runtime_isolate::{options::IsolateOptions, Isolate, IsolateEvent, IsolateRequest}; +use lagoss_runtime::{options::RuntimeOptions, Runtime}; +use lagoss_runtime_http::{RunResult, StreamResult}; +use lagoss_runtime_isolate::{options::IsolateOptions, Isolate, IsolateEvent, IsolateRequest}; use std::sync::Once; use tokio::runtime::Handle; diff --git a/crates/runtime_crypto/Cargo.toml b/crates/runtime_crypto/Cargo.toml index c20114921..82ce849f2 100644 --- a/crates/runtime_crypto/Cargo.toml +++ b/crates/runtime_crypto/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "lagon-runtime-crypto" +name = "lagoss-runtime-crypto" version = "0.1.0" edition = "2021" @@ -8,7 +8,7 @@ v8 = "0.74.3" anyhow = "1.0.72" rand = "0.8.5" uuid = { version = "1.4.1", features = ["v4", "fast-rng"] } -lagon-runtime-v8-utils = { path = "../runtime_v8_utils" } +lagoss-runtime-v8-utils = { path = "../runtime_v8_utils" } # Crypto hmac = "0.12.1" sha1 = "0.10.5" diff --git a/crates/runtime_crypto/src/lib.rs b/crates/runtime_crypto/src/lib.rs index d98787382..a8b481f1d 100644 --- a/crates/runtime_crypto/src/lib.rs +++ b/crates/runtime_crypto/src/lib.rs @@ -2,7 +2,7 @@ use aes::{cipher::typenum::U16, Aes256}; use aes_gcm::AesGcm; use anyhow::{anyhow, Result}; use hmac::Hmac; -use lagon_runtime_v8_utils::{ +use lagoss_runtime_v8_utils::{ extract_v8_string, extract_v8_uint32, extract_v8_uint8array, v8_string, }; use sha2::Sha256; diff --git a/crates/runtime_http/Cargo.toml b/crates/runtime_http/Cargo.toml index 2ed124ec8..0752c558f 100644 --- a/crates/runtime_http/Cargo.toml +++ b/crates/runtime_http/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "lagon-runtime-http" +name = "lagoss-runtime-http" version = "0.1.0" edition = "2021" @@ -7,4 +7,4 @@ edition = "2021" v8 = "0.74.3" hyper = { version = "0.14.27", features = ["client", "http1", "http2", "tcp"] } anyhow = "1.0.72" -lagon-runtime-v8-utils = { path = "../runtime_v8_utils" } +lagoss-runtime-v8-utils = { path = "../runtime_v8_utils" } diff --git a/crates/runtime_http/src/headers.rs b/crates/runtime_http/src/headers.rs index 51c69eb7a..e8abc52dd 100644 --- a/crates/runtime_http/src/headers.rs +++ b/crates/runtime_http/src/headers.rs @@ -3,5 +3,5 @@ pub const X_FORWARDED_PROTO: &str = "x-forwarded-proto"; pub const X_FORWARDED_HOST: &str = "x-forwarded-host"; pub const X_REAL_IP: &str = "x-real-ip"; -pub const X_LAGON_REGION: &str = "x-lagon-region"; -pub const X_LAGON_ID: &str = "x-lagon-id"; +pub const X_LAGOSS_REGION: &str = "x-lagoss-region"; +pub const X_LAGOSS_ID: &str = "x-lagoss-id"; diff --git a/crates/runtime_http/src/request.rs b/crates/runtime_http/src/request.rs index 91cb32d85..f4f4af030 100644 --- a/crates/runtime_http/src/request.rs +++ b/crates/runtime_http/src/request.rs @@ -1,6 +1,6 @@ use anyhow::{anyhow, Result}; use hyper::{body::Bytes, http::request::Parts, Body, Method, Request}; -use lagon_runtime_v8_utils::{ +use lagoss_runtime_v8_utils::{ extract_v8_headers_object, extract_v8_string, v8_headers_object, v8_string, }; diff --git a/crates/runtime_http/src/response.rs b/crates/runtime_http/src/response.rs index c94369b95..059e87b1c 100644 --- a/crates/runtime_http/src/response.rs +++ b/crates/runtime_http/src/response.rs @@ -1,6 +1,6 @@ use anyhow::{anyhow, Result}; use hyper::{body::Bytes, http::response::Builder, Body, HeaderMap, Response}; -use lagon_runtime_v8_utils::{ +use lagoss_runtime_v8_utils::{ extract_v8_headers_object, extract_v8_integer, extract_v8_string, v8_headers_object, v8_integer, v8_string, }; diff --git a/crates/runtime_isolate/Cargo.toml b/crates/runtime_isolate/Cargo.toml index ee4e50e1c..a8d8da686 100644 --- a/crates/runtime_isolate/Cargo.toml +++ b/crates/runtime_isolate/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "lagon-runtime-isolate" +name = "lagoss-runtime-isolate" version = "0.1.0" edition = "2021" @@ -14,9 +14,9 @@ log = { version = "0.4.19", features = ["std", "kv_unstable"] } linked-hash-map = "0.5.6" flate2 = "1.0.26" uuid = { version = "1.4.1", features = ["v4", "fast-rng"] } -lagon-runtime-v8-utils = { path = "../runtime_v8_utils" } -lagon-runtime-http = { path = "../runtime_http" } -lagon-runtime-crypto = { path = "../runtime_crypto" } +lagoss-runtime-v8-utils = { path = "../runtime_v8_utils" } +lagoss-runtime-http = { path = "../runtime_http" } +lagoss-runtime-crypto = { path = "../runtime_crypto" } reqwest = { version = "0.11.18", default-features = false, features = ["rustls-tls"] } [features] diff --git a/crates/runtime_isolate/src/bindings/compression/create.rs b/crates/runtime_isolate/src/bindings/compression/create.rs index 357513301..6e475940a 100644 --- a/crates/runtime_isolate/src/bindings/compression/create.rs +++ b/crates/runtime_isolate/src/bindings/compression/create.rs @@ -9,8 +9,8 @@ use flate2::write::GzEncoder; use flate2::write::ZlibDecoder; use flate2::write::ZlibEncoder; use flate2::Compression; -use lagon_runtime_v8_utils::v8_exception; -use lagon_runtime_v8_utils::v8_string; +use lagoss_runtime_v8_utils::v8_exception; +use lagoss_runtime_v8_utils::v8_string; use uuid::Uuid; fn compression_create( diff --git a/crates/runtime_isolate/src/bindings/compression/finish.rs b/crates/runtime_isolate/src/bindings/compression/finish.rs index 49e360a01..dbfc85c55 100644 --- a/crates/runtime_isolate/src/bindings/compression/finish.rs +++ b/crates/runtime_isolate/src/bindings/compression/finish.rs @@ -1,7 +1,7 @@ use super::CompressionInner; use crate::Isolate; use anyhow::Result; -use lagon_runtime_v8_utils::{v8_exception, v8_uint8array}; +use lagoss_runtime_v8_utils::{v8_exception, v8_uint8array}; fn compression_finish( scope: &mut v8::HandleScope, diff --git a/crates/runtime_isolate/src/bindings/compression/write.rs b/crates/runtime_isolate/src/bindings/compression/write.rs index 8c49379cc..a728f1e03 100644 --- a/crates/runtime_isolate/src/bindings/compression/write.rs +++ b/crates/runtime_isolate/src/bindings/compression/write.rs @@ -3,7 +3,7 @@ use std::io::Write; use super::CompressionInner; use crate::Isolate; use anyhow::Result; -use lagon_runtime_v8_utils::{extract_v8_uint8array, v8_exception, v8_uint8array}; +use lagoss_runtime_v8_utils::{extract_v8_uint8array, v8_exception, v8_uint8array}; fn compression_write( scope: &mut v8::HandleScope, diff --git a/crates/runtime_isolate/src/bindings/crypto/decrypt.rs b/crates/runtime_isolate/src/bindings/crypto/decrypt.rs index b64d9c3ee..c3f7b1ca5 100644 --- a/crates/runtime_isolate/src/bindings/crypto/decrypt.rs +++ b/crates/runtime_isolate/src/bindings/crypto/decrypt.rs @@ -1,8 +1,8 @@ use anyhow::Result; -use lagon_runtime_crypto::{ +use lagoss_runtime_crypto::{ extract_algorithm_object, extract_cryptokey_key_value, methods::decrypt, Algorithm, }; -use lagon_runtime_v8_utils::extract_v8_uint8array; +use lagoss_runtime_v8_utils::extract_v8_uint8array; use crate::bindings::{BindingResult, PromiseResult}; diff --git a/crates/runtime_isolate/src/bindings/crypto/derive_bits.rs b/crates/runtime_isolate/src/bindings/crypto/derive_bits.rs index fc5d00cbb..aac7b28e2 100644 --- a/crates/runtime_isolate/src/bindings/crypto/derive_bits.rs +++ b/crates/runtime_isolate/src/bindings/crypto/derive_bits.rs @@ -1,8 +1,8 @@ use anyhow::Result; -use lagon_runtime_crypto::{ +use lagoss_runtime_crypto::{ extract_cryptokey_key_value, extract_derive_algorithm, methods::derive_bits, DeriveAlgorithm, }; -use lagon_runtime_v8_utils::extract_v8_uint32; +use lagoss_runtime_v8_utils::extract_v8_uint32; use crate::bindings::{BindingResult, PromiseResult}; diff --git a/crates/runtime_isolate/src/bindings/crypto/digest.rs b/crates/runtime_isolate/src/bindings/crypto/digest.rs index adeb200be..3cd441fa7 100644 --- a/crates/runtime_isolate/src/bindings/crypto/digest.rs +++ b/crates/runtime_isolate/src/bindings/crypto/digest.rs @@ -1,6 +1,6 @@ use anyhow::Result; -use lagon_runtime_crypto::{extract_algorithm_object_or_string, methods::digest}; -use lagon_runtime_v8_utils::extract_v8_uint8array; +use lagoss_runtime_crypto::{extract_algorithm_object_or_string, methods::digest}; +use lagoss_runtime_v8_utils::extract_v8_uint8array; use crate::bindings::{BindingResult, PromiseResult}; diff --git a/crates/runtime_isolate/src/bindings/crypto/encrypt.rs b/crates/runtime_isolate/src/bindings/crypto/encrypt.rs index 83e085d96..5ed57d174 100644 --- a/crates/runtime_isolate/src/bindings/crypto/encrypt.rs +++ b/crates/runtime_isolate/src/bindings/crypto/encrypt.rs @@ -1,8 +1,8 @@ use anyhow::Result; -use lagon_runtime_crypto::{ +use lagoss_runtime_crypto::{ extract_algorithm_object, extract_cryptokey_key_value, methods::encrypt, Algorithm, }; -use lagon_runtime_v8_utils::extract_v8_uint8array; +use lagoss_runtime_v8_utils::extract_v8_uint8array; use crate::bindings::{BindingResult, PromiseResult}; diff --git a/crates/runtime_isolate/src/bindings/crypto/generate_key.rs b/crates/runtime_isolate/src/bindings/crypto/generate_key.rs index 7a503b2e4..806c33847 100644 --- a/crates/runtime_isolate/src/bindings/crypto/generate_key.rs +++ b/crates/runtime_isolate/src/bindings/crypto/generate_key.rs @@ -1,5 +1,5 @@ use anyhow::Result; -use lagon_runtime_crypto::{ +use lagoss_runtime_crypto::{ extract_generate_key_algorithm, methods::generate_key, KeyGenAlgorithm, }; diff --git a/crates/runtime_isolate/src/bindings/crypto/get_key_value.rs b/crates/runtime_isolate/src/bindings/crypto/get_key_value.rs index 00fcc253e..2e6cec952 100644 --- a/crates/runtime_isolate/src/bindings/crypto/get_key_value.rs +++ b/crates/runtime_isolate/src/bindings/crypto/get_key_value.rs @@ -1,5 +1,5 @@ -use lagon_runtime_crypto::methods::get_key; -use lagon_runtime_v8_utils::v8_uint8array; +use lagoss_runtime_crypto::methods::get_key; +use lagoss_runtime_v8_utils::v8_uint8array; pub fn get_key_value_binding( scope: &mut v8::HandleScope, diff --git a/crates/runtime_isolate/src/bindings/crypto/random_values.rs b/crates/runtime_isolate/src/bindings/crypto/random_values.rs index eedab9106..a34f7b116 100644 --- a/crates/runtime_isolate/src/bindings/crypto/random_values.rs +++ b/crates/runtime_isolate/src/bindings/crypto/random_values.rs @@ -1,5 +1,5 @@ -use lagon_runtime_crypto::methods::random_values; -use lagon_runtime_v8_utils::{v8_exception, v8_integer}; +use lagoss_runtime_crypto::methods::random_values; +use lagoss_runtime_v8_utils::{v8_exception, v8_integer}; pub fn random_values_binding( scope: &mut v8::HandleScope, diff --git a/crates/runtime_isolate/src/bindings/crypto/sign.rs b/crates/runtime_isolate/src/bindings/crypto/sign.rs index f271d36c1..2712448ac 100644 --- a/crates/runtime_isolate/src/bindings/crypto/sign.rs +++ b/crates/runtime_isolate/src/bindings/crypto/sign.rs @@ -1,8 +1,8 @@ use anyhow::Result; -use lagon_runtime_crypto::{ +use lagoss_runtime_crypto::{ extract_cryptokey_key_value, extract_sign_verify_algorithm, methods::sign, Algorithm, }; -use lagon_runtime_v8_utils::extract_v8_uint8array; +use lagoss_runtime_v8_utils::extract_v8_uint8array; use crate::bindings::{BindingResult, PromiseResult}; diff --git a/crates/runtime_isolate/src/bindings/crypto/uuid.rs b/crates/runtime_isolate/src/bindings/crypto/uuid.rs index 2c957a79f..d161c50f3 100644 --- a/crates/runtime_isolate/src/bindings/crypto/uuid.rs +++ b/crates/runtime_isolate/src/bindings/crypto/uuid.rs @@ -1,6 +1,6 @@ -use lagon_runtime_crypto::methods::uuid; +use lagoss_runtime_crypto::methods::uuid; -use lagon_runtime_v8_utils::v8_string; +use lagoss_runtime_v8_utils::v8_string; pub fn uuid_binding( scope: &mut v8::HandleScope, diff --git a/crates/runtime_isolate/src/bindings/crypto/verify.rs b/crates/runtime_isolate/src/bindings/crypto/verify.rs index 282e12b14..02b1e23bd 100644 --- a/crates/runtime_isolate/src/bindings/crypto/verify.rs +++ b/crates/runtime_isolate/src/bindings/crypto/verify.rs @@ -1,8 +1,8 @@ use anyhow::Result; -use lagon_runtime_crypto::{ +use lagoss_runtime_crypto::{ extract_cryptokey_key_value, extract_sign_verify_algorithm, methods::verify, Algorithm, }; -use lagon_runtime_v8_utils::extract_v8_uint8array; +use lagoss_runtime_v8_utils::extract_v8_uint8array; use crate::bindings::{BindingResult, PromiseResult}; diff --git a/crates/runtime_isolate/src/bindings/fetch.rs b/crates/runtime_isolate/src/bindings/fetch.rs index 925861cd6..f34d9b4c0 100644 --- a/crates/runtime_isolate/src/bindings/fetch.rs +++ b/crates/runtime_isolate/src/bindings/fetch.rs @@ -1,6 +1,6 @@ use anyhow::{anyhow, Result}; use hyper::{Body, Request}; -use lagon_runtime_http::request_from_v8; +use lagoss_runtime_http::request_from_v8; use reqwest::{redirect::Policy, Client, ClientBuilder}; use std::sync::OnceLock; diff --git a/crates/runtime_isolate/src/bindings/mod.rs b/crates/runtime_isolate/src/bindings/mod.rs index bffa9ac8c..884e9be61 100644 --- a/crates/runtime_isolate/src/bindings/mod.rs +++ b/crates/runtime_isolate/src/bindings/mod.rs @@ -13,8 +13,8 @@ use crypto::{ }; use fetch::{fetch_binding, fetch_init}; use hyper::{body::Bytes, HeaderMap}; -use lagon_runtime_http::response_to_v8; -use lagon_runtime_v8_utils::{v8_boolean, v8_string, v8_uint8array}; +use lagoss_runtime_http::response_to_v8; +use lagoss_runtime_v8_utils::{v8_boolean, v8_string, v8_uint8array}; use pull_stream::pull_stream_binding; use queue_microtask::queue_microtask_binding; use sleep::{sleep_binding, sleep_init}; @@ -60,8 +60,8 @@ pub enum BindStrategy { } macro_rules! binding { - ($scope: ident, $lagon_object: ident, $name: literal, $binding: ident) => { - $lagon_object.set( + ($scope: ident, $lagoss_object: ident, $name: literal, $binding: ident) => { + $lagoss_object.set( v8_string($scope, $name).into(), v8::FunctionTemplate::new($scope, $binding).into(), ); @@ -69,7 +69,7 @@ macro_rules! binding { } macro_rules! async_binding { - ($scope: ident, $lagon_object: ident, $name: literal, $init: expr, $binding: expr) => { + ($scope: ident, $lagoss_object: ident, $name: literal, $init: expr, $binding: expr) => { let binding = |scope: &mut v8::HandleScope, args: v8::FunctionCallbackArguments, mut retval: v8::ReturnValue| { @@ -100,7 +100,7 @@ macro_rules! async_binding { } }; - $lagon_object.set( + $lagoss_object.set( v8_string($scope, $name).into(), v8::FunctionTemplate::new($scope, binding).into(), ); @@ -113,83 +113,83 @@ pub fn bind<'a>( ) -> v8::Local<'a, v8::Context> { let global = v8::ObjectTemplate::new(scope); - let lagon_object = v8::ObjectTemplate::new(scope); + let lagoss_object = v8::ObjectTemplate::new(scope); if bind_strategy == BindStrategy::All || bind_strategy == BindStrategy::Sync { - binding!(scope, lagon_object, "log", console_binding); - binding!(scope, lagon_object, "pullStream", pull_stream_binding); - binding!(scope, lagon_object, "uuid", uuid_binding); - binding!(scope, lagon_object, "randomValues", random_values_binding); - binding!(scope, lagon_object, "getKeyValue", get_key_value_binding); + binding!(scope, lagoss_object, "log", console_binding); + binding!(scope, lagoss_object, "pullStream", pull_stream_binding); + binding!(scope, lagoss_object, "uuid", uuid_binding); + binding!(scope, lagoss_object, "randomValues", random_values_binding); + binding!(scope, lagoss_object, "getKeyValue", get_key_value_binding); binding!( scope, - lagon_object, + lagoss_object, "queueMicrotask", queue_microtask_binding ); binding!( scope, - lagon_object, + lagoss_object, "compressionCreate", compression_create_binding ); binding!( scope, - lagon_object, + lagoss_object, "compressionWrite", compression_write_binding ); binding!( scope, - lagon_object, + lagoss_object, "compressionFinish", compression_finish_binding ); - global.set(v8_string(scope, "LagonSync").into(), lagon_object.into()); + global.set(v8_string(scope, "LagossSync").into(), lagoss_object.into()); } if bind_strategy == BindStrategy::All || bind_strategy == BindStrategy::Async { - let lagon_object = v8::ObjectTemplate::new(scope); + let lagoss_object = v8::ObjectTemplate::new(scope); - async_binding!(scope, lagon_object, "fetch", fetch_init, fetch_binding); - async_binding!(scope, lagon_object, "sign", sign_init, sign_binding); - async_binding!(scope, lagon_object, "verify", verify_init, verify_binding); - async_binding!(scope, lagon_object, "digest", digest_init, digest_binding); + async_binding!(scope, lagoss_object, "fetch", fetch_init, fetch_binding); + async_binding!(scope, lagoss_object, "sign", sign_init, sign_binding); + async_binding!(scope, lagoss_object, "verify", verify_init, verify_binding); + async_binding!(scope, lagoss_object, "digest", digest_init, digest_binding); async_binding!( scope, - lagon_object, + lagoss_object, "deriveBits", derive_bits_init, derive_bits_binding ); async_binding!( scope, - lagon_object, + lagoss_object, "encrypt", encrypt_init, encrypt_binding ); async_binding!( scope, - lagon_object, + lagoss_object, "decrypt", decrypt_init, decrypt_binding ); - async_binding!(scope, lagon_object, "sleep", sleep_init, sleep_binding); + async_binding!(scope, lagoss_object, "sleep", sleep_init, sleep_binding); async_binding!( scope, - lagon_object, + lagoss_object, "generateKey", generate_key_init, generate_key_binding ); - global.set(v8_string(scope, "LagonAsync").into(), lagon_object.into()); + global.set(v8_string(scope, "LagossAsync").into(), lagoss_object.into()); } v8::Context::new_from_template(scope, global) diff --git a/crates/runtime_isolate/src/bindings/pull_stream.rs b/crates/runtime_isolate/src/bindings/pull_stream.rs index 0fa031d60..18b922c25 100644 --- a/crates/runtime_isolate/src/bindings/pull_stream.rs +++ b/crates/runtime_isolate/src/bindings/pull_stream.rs @@ -1,7 +1,7 @@ use std::time::Duration; -use lagon_runtime_http::StreamResult; -use lagon_runtime_v8_utils::{extract_v8_uint8array, v8_exception}; +use lagoss_runtime_http::StreamResult; +use lagoss_runtime_v8_utils::{extract_v8_uint8array, v8_exception}; use crate::Isolate; diff --git a/crates/runtime_isolate/src/bindings/queue_microtask.rs b/crates/runtime_isolate/src/bindings/queue_microtask.rs index e1d8bcc5d..07cea5922 100644 --- a/crates/runtime_isolate/src/bindings/queue_microtask.rs +++ b/crates/runtime_isolate/src/bindings/queue_microtask.rs @@ -1,4 +1,4 @@ -use lagon_runtime_v8_utils::v8_exception; +use lagoss_runtime_v8_utils::v8_exception; pub fn queue_microtask_binding( scope: &mut v8::HandleScope, diff --git a/crates/runtime_isolate/src/callbacks.rs b/crates/runtime_isolate/src/callbacks.rs index 1b125f6d2..3c1a55b90 100644 --- a/crates/runtime_isolate/src/callbacks.rs +++ b/crates/runtime_isolate/src/callbacks.rs @@ -1,4 +1,4 @@ -use lagon_runtime_v8_utils::v8_string; +use lagoss_runtime_v8_utils::v8_string; use crate::get_exception_message; diff --git a/crates/runtime_isolate/src/lib.rs b/crates/runtime_isolate/src/lib.rs index a6a06419c..235549781 100644 --- a/crates/runtime_isolate/src/lib.rs +++ b/crates/runtime_isolate/src/lib.rs @@ -1,8 +1,8 @@ use bindings::compression::CompressionInner; use futures::{future::poll_fn, stream::FuturesUnordered, Future, StreamExt}; use hyper::{body::Bytes, http::request::Parts}; -use lagon_runtime_http::{request_to_v8, response_from_v8, RunResult, StreamResult}; -use lagon_runtime_v8_utils::v8_string; +use lagoss_runtime_http::{request_to_v8, response_from_v8, RunResult, StreamResult}; +use lagoss_runtime_v8_utils::v8_string; use linked_hash_map::LinkedHashMap; use std::{ cell::{RefCell, RefMut}, diff --git a/crates/runtime_isolate/src/options.rs b/crates/runtime_isolate/src/options.rs index c207094ec..23ef5b9c5 100644 --- a/crates/runtime_isolate/src/options.rs +++ b/crates/runtime_isolate/src/options.rs @@ -1,4 +1,4 @@ -use lagon_runtime_v8_utils::v8_string; +use lagoss_runtime_v8_utils::v8_string; use std::{collections::HashMap, rc::Rc, time::Duration}; const JS_RUNTIME: &str = include_str!("../runtime.js"); diff --git a/crates/runtime_utils/CHANGELOG.md b/crates/runtime_utils/CHANGELOG.md index d9febc753..fdd9d7e00 100644 --- a/crates/runtime_utils/CHANGELOG.md +++ b/crates/runtime_utils/CHANGELOG.md @@ -1,4 +1,20 @@ -# @lagon/runtime-utils +# @lagoss/runtime-utils + +## 0.3.1 + +### Patch Changes + +- [#18](https://github.com/lagossapp/lagoss/pull/18) [`0066bcf`](https://github.com/lagossapp/lagoss/commit/0066bcf7e24c81d2778c5c39fd05493afb985bd3) Thanks [@anbraten](https://github.com/anbraten)! - Create tags for private packages + +## 0.3.0 + +### Minor Changes + +- [#14](https://github.com/lagossapp/lagoss/pull/14) [`7a9b7da`](https://github.com/lagossapp/lagoss/commit/7a9b7daef8d11137f7e7b6b954ab0d6f0a37d443) Thanks [@anbraten](https://github.com/anbraten)! - Renamed from lagon to lagoss + +### Patch Changes + +- [#15](https://github.com/lagossapp/lagoss/pull/15) [`55eee53`](https://github.com/lagossapp/lagoss/commit/55eee53d29aacf7134e1efced4dcac3ff5450585) Thanks [@anbraten](https://github.com/anbraten)! - Fix release workflow ## 0.2.2 diff --git a/crates/runtime_utils/Cargo.toml b/crates/runtime_utils/Cargo.toml index e17722aa7..32ed98566 100644 --- a/crates/runtime_utils/Cargo.toml +++ b/crates/runtime_utils/Cargo.toml @@ -1,11 +1,11 @@ [package] -name = "lagon-runtime-utils" +name = "lagoss-runtime-utils" version = "0.1.0" edition = "2021" [dependencies] anyhow = "1.0.72" -lagon-runtime-http = { path = "../runtime_http" } +lagoss-runtime-http = { path = "../runtime_http" } hyper = { version = "0.14.27", features = ["stream"] } flume = "0.10.14" tokio = { version = "1", features = ["rt-multi-thread"] } diff --git a/crates/runtime_utils/package.json b/crates/runtime_utils/package.json index efcb4d10f..0445e0ce7 100644 --- a/crates/runtime_utils/package.json +++ b/crates/runtime_utils/package.json @@ -1,9 +1,9 @@ { - "name": "@lagon/runtime-utils", - "version": "0.2.2", - "description": "JavaScript Serverless Runtime for Lagon", - "private": true, - "scripts": { - "test": "cargo test -F test" - } + "name": "@lagoss/runtime-utils", + "version": "0.3.1", + "description": "JavaScript Serverless Runtime for Lagoss", + "private": true, + "scripts": { + "test": "cargo test -F test" + } } diff --git a/crates/runtime_utils/public/403.html b/crates/runtime_utils/public/403.html index 1720cbb0d..76c9fecea 100644 --- a/crates/runtime_utils/public/403.html +++ b/crates/runtime_utils/public/403.html @@ -1,26 +1,32 @@ - + + + + + + Forbidden + - - - - - Forbidden - - - -
-

Forbidden

- 403 -

You can't access this deployment.

-
- - - + +
+

Forbidden

+ 403 +

You can't access this deployment.

+
+ + diff --git a/crates/runtime_utils/public/404.html b/crates/runtime_utils/public/404.html index def6bfd64..5cc9eac91 100644 --- a/crates/runtime_utils/public/404.html +++ b/crates/runtime_utils/public/404.html @@ -1,26 +1,32 @@ - + + + + + + Deployment not found + - - - - - Deployment not found - - - -
-

Deployment not found

- 404 -

This Deployment does not exist.

-
- - - + +
+

Deployment not found

+ 404 +

This Deployment does not exist.

+
+ + diff --git a/crates/runtime_utils/public/500.html b/crates/runtime_utils/public/500.html index 66ed9d771..2efd2f72d 100644 --- a/crates/runtime_utils/public/500.html +++ b/crates/runtime_utils/public/500.html @@ -1,30 +1,36 @@ - + + + + + + Function errored + - - - - - Function errored - - - -
-

Function errored

- 500 -

- An error occurred while running this Function. -
- If you are the owner, check the logs. -

-
- - - + +
+

Function errored

+ 500 +

+ An error occurred while running this Function. +
+ If you are the owner, check the logs. +

+
+ + diff --git a/crates/runtime_utils/public/502.html b/crates/runtime_utils/public/502.html index 7474d84da..575d22658 100644 --- a/crates/runtime_utils/public/502.html +++ b/crates/runtime_utils/public/502.html @@ -1,30 +1,36 @@ - + + + + + + Function resources reached + - - - - - Function resources reached - - - -
-

Function resources reached

- 502 -

- Resources have been reached for this -
- Function. Please try again. -

-
- - - + +
+

Function resources reached

+ 502 +

+ Resources have been reached for this +
+ Function. Please try again. +

+
+ + diff --git a/crates/runtime_utils/src/lib.rs b/crates/runtime_utils/src/lib.rs index 496540766..20d11173d 100644 --- a/crates/runtime_utils/src/lib.rs +++ b/crates/runtime_utils/src/lib.rs @@ -39,7 +39,7 @@ impl Deployment { domains.push(format!( "{}.{}", self.id, - env::var("LAGON_ROOT_DOMAIN").expect("LAGON_ROOT_DOMAIN must be set") + env::var("LAGOSS_ROOT_DOMAIN").expect("LAGOSS_ROOT_DOMAIN must be set") )); // Default domain (function's name) and custom domains are only set in production deployments @@ -47,7 +47,7 @@ impl Deployment { domains.push(format!( "{}.{}", self.function_name, - env::var("LAGON_ROOT_DOMAIN").expect("LAGON_ROOT_DOMAIN must be set") + env::var("LAGOSS_ROOT_DOMAIN").expect("LAGOSS_ROOT_DOMAIN must be set") )); domains.extend(self.domains.clone()); @@ -108,7 +108,7 @@ mod tests { #[test] fn deployment_default_domains() { - env::set_var("LAGON_ROOT_DOMAIN", "lagon.test"); + env::set_var("LAGOSS_ROOT_DOMAIN", "lagoss.test"); let deployment = Deployment { id: "123".into(), @@ -124,18 +124,18 @@ mod tests { cron: None, }; - assert_eq!(deployment.get_domains(), vec!["123.lagon.test".to_owned()]); + assert_eq!(deployment.get_domains(), vec!["123.lagoss.test".to_owned()]); } #[test] fn deployment_domains() { - env::set_var("LAGON_ROOT_DOMAIN", "lagon.test"); + env::set_var("LAGOSS_ROOT_DOMAIN", "lagoss.test"); let deployment = Deployment { id: "123".into(), function_id: "456".into(), function_name: "hello".into(), - domains: HashSet::from_iter(vec!["lagon.app".to_owned()]), + domains: HashSet::from_iter(vec!["lagoss.com".to_owned()]), assets: HashSet::new(), environment_variables: HashMap::new(), memory: 128, @@ -145,18 +145,21 @@ mod tests { cron: None, }; - assert_eq!(deployment.get_domains(), vec!["123.lagon.test".to_owned(),]); + assert_eq!( + deployment.get_domains(), + vec!["123.lagoss.test".to_owned(),] + ); } #[test] fn deployment_domains_production() { - env::set_var("LAGON_ROOT_DOMAIN", "lagon.test"); + env::set_var("LAGOSS_ROOT_DOMAIN", "lagoss.test"); let deployment = Deployment { id: "123".into(), function_id: "456".into(), function_name: "hello".into(), - domains: HashSet::from_iter(vec!["lagon.app".to_owned()]), + domains: HashSet::from_iter(vec!["lagoss.com".to_owned()]), assets: HashSet::new(), environment_variables: HashMap::new(), memory: 128, @@ -169,9 +172,9 @@ mod tests { assert_eq!( deployment.get_domains(), vec![ - "123.lagon.test".to_owned(), - "hello.lagon.test".to_owned(), - "lagon.app".to_owned() + "123.lagoss.test".to_owned(), + "hello.lagoss.test".to_owned(), + "lagoss.com".to_owned() ] ); } diff --git a/crates/runtime_utils/src/response.rs b/crates/runtime_utils/src/response.rs index e9a853234..fd48d8df6 100644 --- a/crates/runtime_utils/src/response.rs +++ b/crates/runtime_utils/src/response.rs @@ -6,7 +6,7 @@ use hyper::{ http::response::Builder, Body, Response, }; -use lagon_runtime_http::{RunResult, StreamResult}; +use lagoss_runtime_http::{RunResult, StreamResult}; use std::{future::Future, sync::Arc}; pub const PAGE_404: &str = include_str!("../public/404.html"); diff --git a/crates/runtime_v8_utils/Cargo.toml b/crates/runtime_v8_utils/Cargo.toml index 3eec59301..149f2de69 100644 --- a/crates/runtime_v8_utils/Cargo.toml +++ b/crates/runtime_v8_utils/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "lagon-runtime-v8-utils" +name = "lagoss-runtime-v8-utils" version = "0.1.0" edition = "2021" diff --git a/crates/serverless/.env.example b/crates/serverless/.env.example index 6bfd6778e..c032b45f8 100644 --- a/crates/serverless/.env.example +++ b/crates/serverless/.env.example @@ -1,14 +1,14 @@ -LAGON_ROOT_DOMAIN=lagon.dev -LAGON_REGION=local -LAGON_ISOLATES_CACHE_SECONDS=60 -LAGON_LISTEN_ADDR=0.0.0.0:4000 +LAGOSS_ROOT_DOMAIN=lagoss.com +LAGOSS_REGION=local +LAGOSS_ISOLATES_CACHE_SECONDS=60 +LAGOSS_LISTEN_ADDR=0.0.0.0:4000 -DATABASE_URL=mysql://root:mysql@localhost:3306/lagon +DATABASE_URL=mysql://root:mysql@localhost:3306/lagoss REDIS_URL=redis://localhost:6379 S3_ENDPOINT=http://localhost:9002 S3_REGION=unknown -S3_BUCKET=lagon +S3_BUCKET=lagoss S3_ACCESS_KEY_ID=root S3_SECRET_ACCESS_KEY=supersecret @@ -21,3 +21,4 @@ PROMETHEUS_ALLOWED_SUBNET= CLICKHOUSE_URL=http://localhost:8123 CLICKHOUSE_USER=default CLICKHOUSE_PASSWORD= +CLICKHOUSE_DATABASE=default diff --git a/crates/serverless/CHANGELOG.md b/crates/serverless/CHANGELOG.md index c72f61e2f..660f69e8a 100644 --- a/crates/serverless/CHANGELOG.md +++ b/crates/serverless/CHANGELOG.md @@ -1,4 +1,22 @@ -# @lagon/serverless +# @lagoss/serverless + +## 0.3.1 + +### Patch Changes + +- [#18](https://github.com/lagossapp/lagoss/pull/18) [`0066bcf`](https://github.com/lagossapp/lagoss/commit/0066bcf7e24c81d2778c5c39fd05493afb985bd3) Thanks [@anbraten](https://github.com/anbraten)! - Create tags for private packages + +## 0.3.0 + +### Minor Changes + +- [#14](https://github.com/lagossapp/lagoss/pull/14) [`7a9b7da`](https://github.com/lagossapp/lagoss/commit/7a9b7daef8d11137f7e7b6b954ab0d6f0a37d443) Thanks [@anbraten](https://github.com/anbraten)! - Renamed from lagon to lagoss + +### Patch Changes + +- [#1027](https://github.com/lagonapp/lagon/pull/1027) [`0fb1f28`](https://github.com/lagossapp/lagoss/commit/0fb1f28818c8c2f781b9e571d7af5e8cdaea0f94) Thanks [@QuiiBz](https://github.com/QuiiBz)! - Properly remove Cron functions + +- [#15](https://github.com/lagossapp/lagoss/pull/15) [`55eee53`](https://github.com/lagossapp/lagoss/commit/55eee53d29aacf7134e1efced4dcac3ff5450585) Thanks [@anbraten](https://github.com/anbraten)! - Fix release workflow ## 0.2.4 diff --git a/crates/serverless/Cargo.toml b/crates/serverless/Cargo.toml index 6c2b51e8f..d93ebd13d 100644 --- a/crates/serverless/Cargo.toml +++ b/crates/serverless/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "lagon-serverless" +name = "lagoss-serverless" version = "0.1.0" edition = "2021" @@ -7,13 +7,13 @@ edition = "2021" hyper = { version = "0.14.27", features = ["server", "http1", "runtime", "stream"] } tokio = { version = "1", features = ["rt-multi-thread", "sync", "time", "macros", "signal"] } tokio-util = { version = "0.7.8", features = ["rt"] } -lagon-runtime = { path = "../runtime" } -lagon-runtime-http = { path = "../runtime_http" } -lagon-runtime-isolate = { path = "../runtime_isolate" } -lagon-runtime-utils = { path = "../runtime_utils" } -lagon-serverless-logger = { path = "../serverless_logger" } -lagon-serverless-downloader = { path = "../serverless_downloader" } -lagon-serverless-pubsub = { path = "../serverless_pubsub" } +lagoss-runtime = { path = "../runtime" } +lagoss-runtime-http = { path = "../runtime_http" } +lagoss-runtime-isolate = { path = "../runtime_isolate" } +lagoss-runtime-utils = { path = "../runtime_utils" } +lagoss-serverless-logger = { path = "../serverless_logger" } +lagoss-serverless-downloader = { path = "../serverless_downloader" } +lagoss-serverless-pubsub = { path = "../serverless_pubsub" } flume = "0.10.14" mysql = { version = "24.0.0", default-features = false, features = ["default-rustls"] } dotenv = "0.15.0" @@ -26,7 +26,7 @@ tokio-cron-scheduler = "0.9.4" # TODO: use a specific version of dashmap when the inline feature is released dashmap = { git = "https://github.com/xacrimon/dashmap.git", rev = "7f9522c5286cfbbb78df15f00f87b8331cb875d6", features = ["inline"] } futures = "0.3.28" -clickhouse = "0.11.5" +clickhouse = "0.11.6" bytes = "1.4.0" serde = { version = "1.0", features = ["derive"] } uuid = { version = "1.4.0", features = ["v4", "fast-rng"] } @@ -36,8 +36,8 @@ uuid = { version = "1.4.0", features = ["v4", "fast-rng"] } tikv-jemallocator = "0.5" [build-dependencies] -lagon-runtime = { path = "../runtime" } -lagon-runtime-isolate = { path = "../runtime_isolate" } +lagoss-runtime = { path = "../runtime" } +lagoss-runtime-isolate = { path = "../runtime_isolate" } flume = "0.10.14" [dev-dependencies] @@ -47,4 +47,4 @@ clickhouse = { version = "0.11.5", features = ["test-util"] } [features] default = [] -test = ["lagon-runtime-utils/test"] +test = ["lagoss-runtime-utils/test"] diff --git a/crates/serverless/build.rs b/crates/serverless/build.rs index 755ea7312..00dcd5f11 100644 --- a/crates/serverless/build.rs +++ b/crates/serverless/build.rs @@ -1,5 +1,5 @@ -use lagon_runtime::{options::RuntimeOptions, Runtime}; -use lagon_runtime_isolate::{options::IsolateOptions, Isolate}; +use lagoss_runtime::{options::RuntimeOptions, Runtime}; +use lagoss_runtime_isolate::{options::IsolateOptions, Isolate}; fn main() { let runtime = Runtime::new(RuntimeOptions::default()); diff --git a/crates/serverless/package.json b/crates/serverless/package.json index f7a61e7ca..c73846043 100644 --- a/crates/serverless/package.json +++ b/crates/serverless/package.json @@ -1,12 +1,12 @@ { - "name": "@lagon/serverless", - "version": "0.2.4", - "description": "Serverless software using Lagon Runtime", + "name": "@lagoss/serverless", + "version": "0.3.1", + "description": "Serverless software using Lagoss Runtime", "private": true, "scripts": { "test": "cargo test -F test", "build": "cargo build", "lint": "cargo clippy -- -Dwarnings --no-deps", - "debug": "cargo build && rust-lldb ../../target/debug/lagon-serverless" + "debug": "cargo build && rust-lldb ../../target/debug/lagoss-serverless" } } diff --git a/crates/serverless/src/clickhouse.rs b/crates/serverless/src/clickhouse.rs index 0f2fa2f00..5c8861964 100644 --- a/crates/serverless/src/clickhouse.rs +++ b/crates/serverless/src/clickhouse.rs @@ -27,11 +27,12 @@ pub struct RequestRow { pub fn create_client() -> Client { let url = env::var("CLICKHOUSE_URL").expect("CLICKHOUSE_URL must be set"); let user = env::var("CLICKHOUSE_USER").expect("CLICKHOUSE_USER must be set"); + let database = env::var("CLICKHOUSE_DATABASE").unwrap_or_else(|_| "default".to_string()); let client = Client::default() .with_url(url) .with_user(user) - .with_database("default"); + .with_database(database); if let Ok(password) = env::var("CLICKHOUSE_PASSWORD") { return client.with_password(password); diff --git a/crates/serverless/src/cronjob.rs b/crates/serverless/src/cronjob.rs index 3e114422b..838b37cc3 100644 --- a/crates/serverless/src/cronjob.rs +++ b/crates/serverless/src/cronjob.rs @@ -3,12 +3,12 @@ use bytes::Bytes; use clickhouse::inserter::Inserter; use futures::lock::Mutex; use hyper::{body, Request}; -use lagon_runtime_http::RunResult; -use lagon_runtime_isolate::{ +use lagoss_runtime_http::RunResult; +use lagoss_runtime_isolate::{ options::{IsolateOptions, Metadata}, Isolate, IsolateEvent, IsolateRequest, }; -use lagon_runtime_utils::Deployment; +use lagoss_runtime_utils::Deployment; use log::{error, info, warn}; use metrics::{decrement_gauge, histogram, increment_gauge}; use std::{ @@ -87,7 +87,7 @@ impl Cronjob { handle.block_on(async move { let deployment = deployment_handle; - increment_gauge!("lagon_isolates", 1.0, &labels); + increment_gauge!("lagoss_isolates", 1.0, &labels); info!(deployment = deployment.id.clone(), function = deployment.function_id.clone(); "Creating new cron isolate"); let options = IsolateOptions::new(code) @@ -108,7 +108,7 @@ impl Cronjob { ("function", metadata.1.clone()), ]; - decrement_gauge!("lagon_isolates", 1.0, &labels); + decrement_gauge!("lagoss_isolates", 1.0, &labels); info!(deployment = metadata.0, function = metadata.1; "Dropping cron isolate"); } })) @@ -120,7 +120,7 @@ impl Cronjob { ]; histogram!( - "lagon_isolate_memory_usage", + "lagoss_isolate_memory_usage", statistics as f64, &labels ); diff --git a/crates/serverless/src/deployments/cache.rs b/crates/serverless/src/deployments/cache.rs index 9a8cd4c9c..321aea755 100644 --- a/crates/serverless/src/deployments/cache.rs +++ b/crates/serverless/src/deployments/cache.rs @@ -11,10 +11,10 @@ const CACHE_TASK_INTERVAL: Duration = Duration::from_secs(5); pub fn run_cache_clear_task(last_requests: Arc>, workers: Workers) { let isolates_cache_seconds = Duration::from_secs( - env::var("LAGON_ISOLATES_CACHE_SECONDS") - .expect("LAGON_ISOLATES_CACHE_SECONDS is not set") + env::var("LAGOSS_ISOLATES_CACHE_SECONDS") + .expect("LAGOSS_ISOLATES_CACHE_SECONDS is not set") .parse() - .expect("LAGON_ISOLATES_CACHE_SECONDS is not a valid number"), + .expect("LAGOSS_ISOLATES_CACHE_SECONDS is not a valid number"), ); tokio::spawn(async move { diff --git a/crates/serverless/src/deployments/filesystem.rs b/crates/serverless/src/deployments/filesystem.rs index dbcebdfba..08a475c2e 100644 --- a/crates/serverless/src/deployments/filesystem.rs +++ b/crates/serverless/src/deployments/filesystem.rs @@ -1,7 +1,7 @@ use std::{fs, path::Path}; use anyhow::Result; -use lagon_runtime_utils::DEPLOYMENTS_DIR; +use lagoss_runtime_utils::DEPLOYMENTS_DIR; use log::info; pub fn create_deployments_folder() -> Result<()> { diff --git a/crates/serverless/src/deployments/mod.rs b/crates/serverless/src/deployments/mod.rs index b7528690b..6eae5f063 100644 --- a/crates/serverless/src/deployments/mod.rs +++ b/crates/serverless/src/deployments/mod.rs @@ -2,8 +2,8 @@ use crate::get_region; use anyhow::{anyhow, Result}; use dashmap::DashMap; use futures::{stream::FuturesUnordered, StreamExt}; -use lagon_runtime_utils::{Deployment, DEPLOYMENTS_DIR}; -use lagon_serverless_downloader::Downloader; +use lagoss_runtime_utils::{Deployment, DEPLOYMENTS_DIR}; +use lagoss_serverless_downloader::Downloader; use log::{error, info, warn}; use mysql::{prelude::Queryable, PooledConn}; use serde::Deserialize; @@ -110,7 +110,7 @@ INNER JOIN Function ON Deployment.functionId = Function.id LEFT JOIN Domain ON Function.id = Domain.functionId -LEFT JOIN EnvVariable +LEFT JOIN EnvVariable ON Function.id = EnvVariable.functionId WHERE Function.cron IS NULL diff --git a/crates/serverless/src/deployments/pubsub.rs b/crates/serverless/src/deployments/pubsub.rs index d70eb928f..4d86d3a17 100644 --- a/crates/serverless/src/deployments/pubsub.rs +++ b/crates/serverless/src/deployments/pubsub.rs @@ -2,9 +2,9 @@ use super::{download_deployment, filesystem::rm_deployment, Deployment, Deployme use crate::{cronjob::Cronjob, get_region, serverless::Workers}; use anyhow::Result; use futures::StreamExt; -use lagon_runtime_isolate::IsolateEvent; -use lagon_serverless_downloader::Downloader; -use lagon_serverless_pubsub::{PubSubListener, PubSubMessage, PubSubMessageKind}; +use lagoss_runtime_isolate::IsolateEvent; +use lagoss_serverless_downloader::Downloader; +use lagoss_serverless_pubsub::{PubSubListener, PubSubMessage, PubSubMessageKind}; use log::{error, warn}; use metrics::increment_counter; use serde_json::Value; @@ -84,7 +84,7 @@ where match download_deployment(&deployment, Arc::clone(&downloader)).await { Ok(_) => { increment_counter!( - "lagon_deployments", + "lagoss_deployments", "status" => "success", "deployment" => deployment.id.clone(), "function" => deployment.function_id.clone(), @@ -108,7 +108,7 @@ where } Err(error) => { increment_counter!( - "lagon_deployments", + "lagoss_deployments", "status" => "error", "deployment" => deployment.id.clone(), "function" => deployment.function_id.clone(), @@ -124,7 +124,7 @@ where match rm_deployment(&deployment.id) { Ok(_) => { increment_counter!( - "lagon_undeployments", + "lagoss_undeployments", "status" => "success", "deployment" => deployment.id.clone(), "function" => deployment.function_id.clone(), @@ -149,7 +149,7 @@ where } Err(error) => { increment_counter!( - "lagon_undeployments", + "lagoss_undeployments", "status" => "error", "deployment" => deployment.id.clone(), "function" => deployment.function_id.clone(), @@ -160,7 +160,7 @@ where } PubSubMessageKind::Promote => { increment_counter!( - "lagon_promotion", + "lagoss_promotion", "deployment" => deployment.id.clone(), "function" => deployment.function_id.clone(), ); diff --git a/crates/serverless/src/lib.rs b/crates/serverless/src/lib.rs index 1e41d33e0..35b3567d7 100644 --- a/crates/serverless/src/lib.rs +++ b/crates/serverless/src/lib.rs @@ -8,7 +8,7 @@ pub mod serverless; static REGION: OnceLock = OnceLock::new(); pub fn get_region() -> &'static String { - REGION.get_or_init(|| env::var("LAGON_REGION").expect("LAGON_REGION must be set")) + REGION.get_or_init(|| env::var("LAGOSS_REGION").expect("LAGOSS_REGION must be set")) } pub const SNAPSHOT_BLOB: &[u8] = include_bytes!("../snapshot.bin"); diff --git a/crates/serverless/src/main.rs b/crates/serverless/src/main.rs index f53591117..65e462ca0 100644 --- a/crates/serverless/src/main.rs +++ b/crates/serverless/src/main.rs @@ -1,12 +1,12 @@ use anyhow::Result; -use lagon_runtime::{options::RuntimeOptions, Runtime}; -use lagon_serverless::clickhouse::{create_client, run_migrations}; -use lagon_serverless::deployments::get_deployments; -use lagon_serverless::get_region; -use lagon_serverless::serverless::start; -use lagon_serverless_downloader::{get_bucket, S3BucketDownloader}; -use lagon_serverless_logger::init_logger; -use lagon_serverless_pubsub::RedisPubSub; +use lagoss_runtime::{options::RuntimeOptions, Runtime}; +use lagoss_serverless::clickhouse::{create_client, run_migrations}; +use lagoss_serverless::deployments::get_deployments; +use lagoss_serverless::get_region; +use lagoss_serverless::serverless::start; +use lagoss_serverless_downloader::{get_bucket, S3BucketDownloader}; +use lagoss_serverless_logger::init_logger; +use lagoss_serverless_pubsub::RedisPubSub; use log::info; use metrics_exporter_prometheus::PrometheusBuilder; use mysql::{Opts, Pool}; @@ -34,8 +34,8 @@ async fn main() -> Result<()> { let _flush_guard = init_logger(get_region().clone()).expect("Failed to init logger"); let runtime = Runtime::new(RuntimeOptions::default()); - let addr: SocketAddr = env::var("LAGON_LISTEN_ADDR") - .expect("LAGON_LISTEN_ADDR must be set") + let addr: SocketAddr = env::var("LAGOSS_LISTEN_ADDR") + .expect("LAGOSS_LISTEN_ADDR must be set") .parse()?; let prometheus_addr: SocketAddr = env::var("PROMETHEUS_LISTEN_ADDR") .expect("PROMETHEUS_LISTEN_ADDR must be set") diff --git a/crates/serverless/src/serverless.rs b/crates/serverless/src/serverless.rs index 6d43875de..923bae39c 100644 --- a/crates/serverless/src/serverless.rs +++ b/crates/serverless/src/serverless.rs @@ -14,18 +14,18 @@ use hyper::{ service::{make_service_fn, service_fn}, Body, Request, Response, Server, }; -use lagon_runtime_http::{RunResult, X_LAGON_ID}; -use lagon_runtime_isolate::{ +use lagoss_runtime_http::{RunResult, X_LAGOSS_ID}; +use lagoss_runtime_isolate::{ options::{IsolateOptions, Metadata}, Isolate, IsolateEvent, IsolateRequest, }; -use lagon_runtime_utils::{ +use lagoss_runtime_utils::{ assets::{find_asset, handle_asset}, response::{handle_response, ResponseEvent, FAVICON_URL, PAGE_403, PAGE_404}, DEPLOYMENTS_DIR, }; -use lagon_serverless_downloader::Downloader; -use lagon_serverless_pubsub::PubSubListener; +use lagoss_serverless_downloader::Downloader; +use lagoss_serverless_pubsub::PubSubListener; use log::{as_debug, error, info, warn}; use metrics::{decrement_gauge, histogram, increment_counter, increment_gauge}; use std::{ @@ -51,7 +51,7 @@ async fn handle_error( ) { let (level, message) = match result { RunResult::Timeout => { - increment_counter!("lagon_isolate_timeouts", "deployment" => deployment_id.clone(), "function" => function_id.clone()); + increment_counter!("lagoss_isolate_timeouts", "deployment" => deployment_id.clone(), "function" => function_id.clone()); let message = "Function execution timed out"; warn!(deployment = deployment_id, function = function_id, request = request_id; "{}", message); @@ -59,7 +59,7 @@ async fn handle_error( ("warn", message.into()) } RunResult::MemoryLimit => { - increment_counter!("lagon_isolate_memory_limits", "deployment" => deployment_id.clone(), "function" => function_id.clone()); + increment_counter!("lagoss_isolate_memory_limits", "deployment" => deployment_id.clone(), "function" => function_id.clone()); let message = "Function execution memory limit reached"; warn!(deployment = deployment_id, function = function_id, request = request_id; "{}", message); @@ -67,7 +67,7 @@ async fn handle_error( ("warn", message.into()) } RunResult::Error(error) => { - increment_counter!("lagon_isolate_errors", "deployment" => deployment_id.clone(), "function" => function_id.clone()); + increment_counter!("lagoss_isolate_errors", "deployment" => deployment_id.clone(), "function" => function_id.clone()); let message = format!("Function execution error: {}", error); error!(deployment = deployment_id, function = function_id, request = request_id; "{}", message); @@ -103,8 +103,8 @@ async fn handle_request( inserters: Arc, Inserter)>>, log_sender: flume::Sender<(String, String, Metadata)>, ) -> Result> { - let request_id = match req.headers().get(X_LAGON_ID) { - Some(x_lagon_id) => x_lagon_id.to_str().unwrap_or("").to_string(), + let request_id = match req.headers().get(X_LAGOSS_ID) { + Some(x_lagoss_id) => x_lagoss_id.to_str().unwrap_or("").to_string(), None => String::new(), }; @@ -112,7 +112,7 @@ async fn handle_request( Some(hostname) => hostname.to_str()?.to_string(), None => { increment_counter!( - "lagon_ignored_requests", + "lagoss_ignored_requests", "reason" => "No hostname", ); warn!(req = as_debug!(req), request = request_id; "No Host header found in request"); @@ -125,7 +125,7 @@ async fn handle_request( Some(entry) => Arc::clone(entry.value()), None => { increment_counter!( - "lagon_ignored_requests", + "lagoss_ignored_requests", "reason" => "No deployment", "hostname" => hostname.clone(), ); @@ -137,7 +137,7 @@ async fn handle_request( if deployment.cron.is_some() { increment_counter!( - "lagon_ignored_requests", + "lagoss_ignored_requests", "reason" => "Cron", "hostname" => hostname.clone(), ); @@ -194,7 +194,7 @@ async fn handle_request( std::thread::Builder::new().name(String::from("isolate-") + deployment.id.as_str()).spawn(move || { handle.block_on(async move { - increment_gauge!("lagon_isolates", 1.0, "deployment" => deployment.id.clone(), "function" => deployment.function_id.clone()); + increment_gauge!("lagoss_isolates", 1.0, "deployment" => deployment.id.clone(), "function" => deployment.function_id.clone()); info!(deployment = deployment.id, function = deployment.function_id, request = request_id_handle; "Creating new isolate"); let code = deployment.get_code().unwrap_or_else(|error| { @@ -220,7 +220,7 @@ async fn handle_request( ("function", metadata.1.clone()), ]; - decrement_gauge!("lagon_isolates", 1.0, &labels); + decrement_gauge!("lagoss_isolates", 1.0, &labels); info!(deployment = metadata.0, function = metadata.1; "Dropping isolate"); } })) @@ -232,7 +232,7 @@ async fn handle_request( ]; histogram!( - "lagon_isolate_memory_usage", + "lagoss_isolate_memory_usage", statistics as f64, &labels ); diff --git a/crates/serverless/tests/assets.rs b/crates/serverless/tests/assets.rs index a50ecdf0c..b5a4b95ad 100644 --- a/crates/serverless/tests/assets.rs +++ b/crates/serverless/tests/assets.rs @@ -1,9 +1,9 @@ use anyhow::Result; use dashmap::DashMap; -use lagon_runtime_utils::Deployment; -use lagon_serverless::serverless::start; -use lagon_serverless_downloader::FakeDownloader; -use lagon_serverless_pubsub::FakePubSub; +use lagoss_runtime_utils::Deployment; +use lagoss_serverless::serverless::start; +use lagoss_serverless_downloader::FakeDownloader; +use lagoss_serverless_pubsub::FakePubSub; use serial_test::serial; use std::{ collections::{HashMap, HashSet}, diff --git a/crates/serverless/tests/deployments.rs b/crates/serverless/tests/deployments.rs index 7fde7960f..744138a95 100644 --- a/crates/serverless/tests/deployments.rs +++ b/crates/serverless/tests/deployments.rs @@ -1,9 +1,9 @@ use anyhow::Result; use dashmap::DashMap; -use lagon_runtime_utils::Deployment; -use lagon_serverless::serverless::start; -use lagon_serverless_downloader::FakeDownloader; -use lagon_serverless_pubsub::FakePubSub; +use lagoss_runtime_utils::Deployment; +use lagoss_serverless::serverless::start; +use lagoss_serverless_downloader::FakeDownloader; +use lagoss_serverless_pubsub::FakePubSub; use serial_test::serial; use std::{ collections::{HashMap, HashSet}, diff --git a/crates/serverless/tests/errors.rs b/crates/serverless/tests/errors.rs index ef94adac3..25f66875f 100644 --- a/crates/serverless/tests/errors.rs +++ b/crates/serverless/tests/errors.rs @@ -1,12 +1,12 @@ use anyhow::Result; use dashmap::DashMap; -use lagon_runtime_utils::{ +use lagoss_runtime_utils::{ response::{PAGE_403, PAGE_404, PAGE_500, PAGE_502}, Deployment, }; -use lagon_serverless::serverless::start; -use lagon_serverless_downloader::FakeDownloader; -use lagon_serverless_pubsub::FakePubSub; +use lagoss_serverless::serverless::start; +use lagoss_serverless_downloader::FakeDownloader; +use lagoss_serverless_pubsub::FakePubSub; use serial_test::serial; use std::{ collections::{HashMap, HashSet}, diff --git a/crates/serverless/tests/pubsub.rs b/crates/serverless/tests/pubsub.rs index f9a47eb19..b7b5d7953 100644 --- a/crates/serverless/tests/pubsub.rs +++ b/crates/serverless/tests/pubsub.rs @@ -1,9 +1,9 @@ use anyhow::Result; use dashmap::DashMap; -use lagon_runtime_utils::response::{PAGE_403, PAGE_404}; -use lagon_serverless::serverless::start; -use lagon_serverless_downloader::FakeDownloader; -use lagon_serverless_pubsub::{FakePubSub, PubSubMessage, PubSubMessageKind}; +use lagoss_runtime_utils::response::{PAGE_403, PAGE_404}; +use lagoss_serverless::serverless::start; +use lagoss_serverless_downloader::FakeDownloader; +use lagoss_serverless_pubsub::{FakePubSub, PubSubMessage, PubSubMessageKind}; use serial_test::serial; use std::{sync::Arc, time::Duration}; @@ -134,7 +134,7 @@ async fn assign_correct_domains_prod() -> Result<()> { let response = client .get("http://127.0.0.1:4000") - .header("host", "simple.lagon.dev") + .header("host", "simple.lagoss.com") .send() .await?; assert_eq!(response.status(), 200); @@ -195,7 +195,7 @@ async fn assign_correct_domains_dev() -> Result<()> { let response = client .get("http://127.0.0.1:4000") - .header("host", "simple.lagon.dev") + .header("host", "simple.lagoss.com") .send() .await?; assert_eq!(response.status(), 200); diff --git a/crates/serverless/tests/requests.rs b/crates/serverless/tests/requests.rs index 68e30c003..3ce65a760 100644 --- a/crates/serverless/tests/requests.rs +++ b/crates/serverless/tests/requests.rs @@ -2,10 +2,10 @@ use anyhow::Result; use dashmap::DashMap; use futures::StreamExt; use hyper::body::Bytes; -use lagon_runtime_utils::Deployment; -use lagon_serverless::serverless::start; -use lagon_serverless_downloader::FakeDownloader; -use lagon_serverless_pubsub::FakePubSub; +use lagoss_runtime_utils::Deployment; +use lagoss_serverless::serverless::start; +use lagoss_serverless_downloader::FakeDownloader; +use lagoss_serverless_pubsub::FakePubSub; use serial_test::serial; use std::{ collections::{HashMap, HashSet}, diff --git a/crates/serverless/tests/utils/mod.rs b/crates/serverless/tests/utils/mod.rs index 5da0892cb..2bd57cc67 100644 --- a/crates/serverless/tests/utils/mod.rs +++ b/crates/serverless/tests/utils/mod.rs @@ -1,6 +1,6 @@ use clickhouse::{test::handlers, Client}; -use lagon_runtime::{options::RuntimeOptions, Runtime}; -use lagon_serverless::clickhouse::{LogRow, RequestRow}; +use lagoss_runtime::{options::RuntimeOptions, Runtime}; +use lagoss_serverless::clickhouse::{LogRow, RequestRow}; use std::sync::Once; use crate::utils::mock::Mock; diff --git a/crates/serverless_downloader/Cargo.toml b/crates/serverless_downloader/Cargo.toml index 62a187808..00d51e955 100644 --- a/crates/serverless_downloader/Cargo.toml +++ b/crates/serverless_downloader/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "lagon-serverless-downloader" +name = "lagoss-serverless-downloader" version = "0.1.0" edition = "2021" [dependencies] -lagon-runtime-utils = { path = "../runtime_utils" } +lagoss-runtime-utils = { path = "../runtime_utils" } anyhow = "1.0.72" async-trait = "0.1.72" rust-s3 = "0.33" diff --git a/crates/serverless_downloader/src/fake.rs b/crates/serverless_downloader/src/fake.rs index 7766aba8b..3a491a3dd 100644 --- a/crates/serverless_downloader/src/fake.rs +++ b/crates/serverless_downloader/src/fake.rs @@ -1,6 +1,6 @@ use anyhow::Result; use async_trait::async_trait; -use lagon_runtime_utils::DEPLOYMENTS_DIR; +use lagoss_runtime_utils::DEPLOYMENTS_DIR; use std::{fs, path::Path}; use super::Downloader; diff --git a/crates/serverless_logger/Cargo.toml b/crates/serverless_logger/Cargo.toml index 5c7bb1e32..4833d22e8 100644 --- a/crates/serverless_logger/Cargo.toml +++ b/crates/serverless_logger/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "lagon-serverless-logger" +name = "lagoss-serverless-logger" version = "0.1.0" edition = "2021" diff --git a/crates/serverless_pubsub/Cargo.toml b/crates/serverless_pubsub/Cargo.toml index d3b6d9adf..53a5721bf 100644 --- a/crates/serverless_pubsub/Cargo.toml +++ b/crates/serverless_pubsub/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "lagon-serverless-pubsub" +name = "lagoss-serverless-pubsub" version = "0.1.0" edition = "2021" diff --git a/crates/wpt-runner/CHANGELOG.md b/crates/wpt-runner/CHANGELOG.md index a2443170e..fe73b8de0 100644 --- a/crates/wpt-runner/CHANGELOG.md +++ b/crates/wpt-runner/CHANGELOG.md @@ -1,4 +1,20 @@ -# @lagon/wpt-runner +# @lagoss/wpt-runner + +## 0.2.1 + +### Patch Changes + +- [#18](https://github.com/lagossapp/lagoss/pull/18) [`0066bcf`](https://github.com/lagossapp/lagoss/commit/0066bcf7e24c81d2778c5c39fd05493afb985bd3) Thanks [@anbraten](https://github.com/anbraten)! - Create tags for private packages + +## 0.2.0 + +### Minor Changes + +- [#14](https://github.com/lagossapp/lagoss/pull/14) [`7a9b7da`](https://github.com/lagossapp/lagoss/commit/7a9b7daef8d11137f7e7b6b954ab0d6f0a37d443) Thanks [@anbraten](https://github.com/anbraten)! - Renamed from lagon to lagoss + +### Patch Changes + +- [#15](https://github.com/lagossapp/lagoss/pull/15) [`55eee53`](https://github.com/lagossapp/lagoss/commit/55eee53d29aacf7134e1efced4dcac3ff5450585) Thanks [@anbraten](https://github.com/anbraten)! - Fix release workflow ## 0.1.6 diff --git a/crates/wpt-runner/Cargo.toml b/crates/wpt-runner/Cargo.toml index 7f3b409ad..64bb1c737 100644 --- a/crates/wpt-runner/Cargo.toml +++ b/crates/wpt-runner/Cargo.toml @@ -1,13 +1,13 @@ [package] -name = "lagon-wpt-runner" +name = "lagoss-wpt-runner" version = "0.1.0" edition = "2021" [dependencies] tokio = { version = "1", features = ["rt", "macros"] } -lagon-runtime = { path = "../runtime" } -lagon-runtime-http = { path = "../runtime_http" } -lagon-runtime-isolate = { path = "../runtime_isolate" } +lagoss-runtime = { path = "../runtime" } +lagoss-runtime-http = { path = "../runtime_http" } +lagoss-runtime-isolate = { path = "../runtime_isolate" } flume = "0.10.14" console = "0.15.7" hyper = { version = "0.14.27", features = ["server"] } diff --git a/crates/wpt-runner/package.json b/crates/wpt-runner/package.json index ceb192d7c..d4e12ca5f 100644 --- a/crates/wpt-runner/package.json +++ b/crates/wpt-runner/package.json @@ -1,11 +1,11 @@ { - "name": "@lagon/wpt-runner", - "version": "0.1.6", - "description": "web-platform-tests runner for Lagon Runtime", + "name": "@lagoss/wpt-runner", + "version": "0.2.1", + "description": "web-platform-tests runner for Lagoss Runtime", "private": true, "scripts": { "start": "cargo run > current-results.md", "build": "cargo build", "lint": "cargo clippy -- -Dwarnings --no-deps" } -} \ No newline at end of file +} diff --git a/crates/wpt-runner/src/main.rs b/crates/wpt-runner/src/main.rs index 5ce6b3483..abeb1cd87 100644 --- a/crates/wpt-runner/src/main.rs +++ b/crates/wpt-runner/src/main.rs @@ -1,8 +1,8 @@ use console::style; use hyper::{http::Request, Body}; -use lagon_runtime::{options::RuntimeOptions, Runtime}; -use lagon_runtime_http::RunResult; -use lagon_runtime_isolate::{options::IsolateOptions, Isolate, IsolateEvent, IsolateRequest}; +use lagoss_runtime::{options::RuntimeOptions, Runtime}; +use lagoss_runtime_http::RunResult; +use lagoss_runtime_isolate::{options::IsolateOptions, Isolate, IsolateEvent, IsolateRequest}; use std::{ env, fs, path::{Path, PathBuf}, diff --git a/docker-compose.yml b/docker-compose.yml index 75a2f868f..a3b381d2c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -56,7 +56,7 @@ services: MINIO_ROOT_USER: ${S3_ACCESS_KEY:-root} MINIO_ROOT_PASSWORD: ${S3_SECRET_KEY:-supersecret} entrypoint: sh - command: -c 'mkdir -p /data/lagon && minio server /data --console-address ":9001" --address ":9002"' + command: -c 'mkdir -p /data/lagoss && minio server /data --console-address ":9001" --address ":9002"' volumes: redis: diff --git a/docker/Dockerfile.dashboard b/docker/Dockerfile.dashboard index 403cfe590..044e57b5b 100644 --- a/docker/Dockerfile.dashboard +++ b/docker/Dockerfile.dashboard @@ -14,9 +14,9 @@ COPY . . # Learn more here: https://nextjs.org/telemetry # Uncomment the following line in case you want to disable telemetry during the build. # ENV NEXT_TELEMETRY_DISABLED 1 -RUN pnpm --filter @lagon/dashboard postinstall +RUN pnpm --filter @lagoss/dashboard postinstall ENV NEXTJS_OUTPUT standalone -RUN pnpm --filter @lagon/dashboard build +RUN pnpm --filter @lagoss/dashboard build FROM base AS runner ENV NODE_ENV production diff --git a/docker/Dockerfile.serverless b/docker/Dockerfile.serverless index 5e1ac42a1..0f552cff9 100644 --- a/docker/Dockerfile.serverless +++ b/docker/Dockerfile.serverless @@ -18,15 +18,15 @@ COPY --from=planner /app/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json COPY . . COPY --from=js-runtime /app/dist/index.js /app/crates/runtime_isolate/runtime.js -RUN cargo build --release --bin lagon-serverless +RUN cargo build --release --bin lagoss-serverless -FROM debian:bullseye-slim AS runtime +FROM chef AS runtime WORKDIR /app RUN apt-get update -y \ - && apt-get install -y ca-certificates \ + && apt-get install -y ca-certificates libssl1.0 libssl-dev \ && apt-get autoremove -y \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* -COPY --from=builder /app/target/release/lagon-serverless /usr/local/bin +COPY --from=builder /app/target/release/lagoss-serverless /usr/local/bin -ENTRYPOINT ["/usr/local/bin/lagon-serverless"] +ENTRYPOINT ["/usr/local/bin/lagoss-serverless"] diff --git a/package.json b/package.json index 07b0fef73..f4639a42b 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,17 @@ { - "name": "lagon", + "name": "lagoss", "version": "0.0.1", "description": "Deploy Serverless Functions at the Edge", "private": true, "scripts": { - "start:docs": "pnpm --filter @lagon/docs dev", - "start:www": "pnpm --filter @lagon/www dev", - "test": "turbo test --continue --filter=!@lagon/example-*", - "build": "turbo build --continue --filter=!@lagon/example-*", + "start:docs": "pnpm --filter @lagoss/docs dev", + "test": "turbo test --continue --filter=!@lagoss/example-*", + "build": "turbo build --continue --filter=!@lagoss/example-*", "lint": "turbo lint --continue", "typecheck": "turbo typecheck --continue", - "docker:serverless:build": "docker build -t lagon/serverless -f docker/Dockerfile.serverless .", - "docker:serverless:start": "docker run --rm -p 4000:4000 --env-file crates/serverless/.env lagon/serverless", - "docker:dashboard:build": "docker build -t lagon/dashboard -f docker/Dockerfile.dashboard .", - "docker:dashboard:start": "docker run --rm -p 3000:3000 --env-file packages/dashboard/.env lagon/dashboard", - "release": "pnpm build --filter=@lagon/astro --filter=@lagon/remix && pnpm changeset publish" + "docker:serverless:build": "docker build -t ghcr.io/lagossapp/serverless -f docker/Dockerfile.serverless .", + "docker:dashboard:build": "docker build -t ghcr.io/lagossapp/dashboard -f docker/Dockerfile.dashboard .", + "release": "pnpm build --filter=@lagoss/astro --filter=@lagoss/remix && pnpm changeset publish" }, "lint-staged": { "*.{ts,tsx}": "eslint --fix" diff --git a/packages/dashboard/.env.example b/packages/dashboard/.env.example index 3ba4d6410..17053ac7e 100644 --- a/packages/dashboard/.env.example +++ b/packages/dashboard/.env.example @@ -2,19 +2,15 @@ NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_SECRET= REDIS_URL=redis://localhost:6379 -DATABASE_URL=mysql://root:mysql@localhost:3306/lagon -LAGON_RESTRICT_LOGIN=false -LAGON_BLACKLISTED_FUNCTIONS_NAMES= -NEXT_PUBLIC_LAGON_ROOT_SCHEM=http -NEXT_PUBLIC_LAGON_ROOT_DOMAIN=lagon.dev - -NEXT_PUBLIC_SENTRY_DSN= -NEXT_PUBLIC_SENTRY_ENVIRONMENT=development -SENTRY_IGNORE_API_RESOLUTION_ERROR=1 +DATABASE_URL=mysql://root:mysql@localhost:3306/lagoss +LAGOSS_RESTRICT_LOGIN=false +LAGOSS_BLACKLISTED_FUNCTIONS_NAMES= +LAGOSS_ROOT_SCHEM=http +LAGOSS_ROOT_DOMAIN=lagoss.com S3_ENDPOINT=http://localhost:9002 S3_REGION=unkown -S3_BUCKET=lagon +S3_BUCKET=lagoss S3_ACCESS_KEY_ID=root S3_SECRET_ACCESS_KEY=supersecret @@ -32,8 +28,8 @@ CLICKHOUSE_PASSWORD= STRIPE_SECRET_KEY= STRIPE_WEBHOOK_SECRET= -NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE_ID= -NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE_ID_METERED= +STRIPE_PRO_PLAN_PRICE_ID= +STRIPE_PRO_PLAN_PRICE_ID_METERED= SMTP_HOST= SMTP_PORT= @@ -41,5 +37,5 @@ SMTP_USER= SMTP_PASSWORD= SMTP_FROM= -NEXT_PUBLIC_POSTHOG_KEY= -NEXT_PUBLIC_POSTHOG_HOST=https://app.posthog.com +POSTHOG_KEY= +POSTHOG_HOST=https://app.posthog.com diff --git a/packages/dashboard/.gitignore b/packages/dashboard/.gitignore index c1855e534..d92b578be 100644 --- a/packages/dashboard/.gitignore +++ b/packages/dashboard/.gitignore @@ -27,6 +27,3 @@ yarn-error.log* # local env files .env*.local - -# Sentry -.sentryclirc diff --git a/packages/dashboard/CHANGELOG.md b/packages/dashboard/CHANGELOG.md index ea9817dbe..dfb940194 100644 --- a/packages/dashboard/CHANGELOG.md +++ b/packages/dashboard/CHANGELOG.md @@ -1,4 +1,28 @@ -# @lagon/dashboard +# @lagoss/dashboard + +## 0.4.1 + +### Patch Changes + +- [#18](https://github.com/lagossapp/lagoss/pull/18) [`0066bcf`](https://github.com/lagossapp/lagoss/commit/0066bcf7e24c81d2778c5c39fd05493afb985bd3) Thanks [@anbraten](https://github.com/anbraten)! - Create tags for private packages + +- Updated dependencies [[`0066bcf`](https://github.com/lagossapp/lagoss/commit/0066bcf7e24c81d2778c5c39fd05493afb985bd3)]: + - @lagoss/ui@0.3.1 + +## 0.4.0 + +### Minor Changes + +- [#14](https://github.com/lagossapp/lagoss/pull/14) [`7a9b7da`](https://github.com/lagossapp/lagoss/commit/7a9b7daef8d11137f7e7b6b954ab0d6f0a37d443) Thanks [@anbraten](https://github.com/anbraten)! - Renamed from lagon to lagoss + +### Patch Changes + +- [#1048](https://github.com/lagonapp/lagon/pull/1048) [`aee172d`](https://github.com/lagossapp/lagoss/commit/aee172d548fb70d47083165f7b80867574c284e1) Thanks [@QuiiBz](https://github.com/QuiiBz)! - Fix organization members check + +- [#15](https://github.com/lagossapp/lagoss/pull/15) [`55eee53`](https://github.com/lagossapp/lagoss/commit/55eee53d29aacf7134e1efced4dcac3ff5450585) Thanks [@anbraten](https://github.com/anbraten)! - Fix release workflow + +- Updated dependencies [[`55eee53`](https://github.com/lagossapp/lagoss/commit/55eee53d29aacf7134e1efced4dcac3ff5450585), [`7a9b7da`](https://github.com/lagossapp/lagoss/commit/7a9b7daef8d11137f7e7b6b954ab0d6f0a37d443)]: + - @lagoss/ui@0.3.0 ## 0.3.13 diff --git a/packages/dashboard/lib/api/functions.ts b/packages/dashboard/lib/api/functions.ts index 0c88d29dd..87471901b 100644 --- a/packages/dashboard/lib/api/functions.ts +++ b/packages/dashboard/lib/api/functions.ts @@ -4,7 +4,7 @@ import { TRPCError } from '@trpc/server'; import type { Plan } from 'lib/plans'; import { FUNCTION_NAME_REGEX } from 'lib/constants'; -const LAGON_BLACKLISTED_FUNCTIONS_NAMES = process.env.LAGON_BLACKLISTED_NAMES?.split(',') ?? []; +const LAGOSS_BLACKLISTED_FUNCTIONS_NAMES = process.env.LAGOSS_BLACKLISTED_NAMES?.split(',') ?? []; export async function isFunctionNameUnique(name: string): Promise { const result = await prisma.function.findFirst({ @@ -32,7 +32,7 @@ export function isFunctionNameAllowed(name: string): boolean { } export function isFunctionNameBlacklisted(name: string): boolean { - return LAGON_BLACKLISTED_FUNCTIONS_NAMES.includes(name.toLowerCase()); + return LAGOSS_BLACKLISTED_FUNCTIONS_NAMES.includes(name.toLowerCase()); } export async function checkCanCreateFunction({ diff --git a/packages/dashboard/lib/components/Footer.tsx b/packages/dashboard/lib/components/Footer.tsx index 973b59101..28f4ccfea 100644 --- a/packages/dashboard/lib/components/Footer.tsx +++ b/packages/dashboard/lib/components/Footer.tsx @@ -27,11 +27,11 @@ const Footer = () => {
v{packageJson.version} - + GitHub - + Twitter diff --git a/packages/dashboard/lib/components/FunctionLinks.tsx b/packages/dashboard/lib/components/FunctionLinks.tsx index 83f2933b3..b2a87bc72 100644 --- a/packages/dashboard/lib/components/FunctionLinks.tsx +++ b/packages/dashboard/lib/components/FunctionLinks.tsx @@ -1,5 +1,5 @@ import { getCurrentDomain, getFullCurrentDomain, getFullDomain } from 'lib/utils'; -import { Link } from '@lagon/ui'; +import { Link } from '@lagoss/ui'; import { MouseEventHandler } from 'react'; type FunctionLinksProps = { diff --git a/packages/dashboard/lib/components/Layout.tsx b/packages/dashboard/lib/components/Layout.tsx index 7e5d1ae59..4b7e8a468 100644 --- a/packages/dashboard/lib/components/Layout.tsx +++ b/packages/dashboard/lib/components/Layout.tsx @@ -2,7 +2,7 @@ import { signOut, useSession } from 'next-auth/react'; import Link from 'next/link'; import { useRouter } from 'next/router'; import { HTMLAttributeAnchorTarget, ReactNode, Suspense, useCallback, useMemo } from 'react'; -import { Button, Menu, Divider, EmptyState } from '@lagon/ui'; +import { Button, Menu, Divider, EmptyState } from '@lagoss/ui'; import { ChevronDownIcon, CogIcon, @@ -105,7 +105,7 @@ const Layout = ({ title, anonymous, children }: LayoutProps) => { return ( <> - {title} - Lagon + {title} - Lagoss {theme === 'Dark' ? ( ) : ( @@ -124,7 +124,7 @@ const Layout = ({ title, anonymous, children }: LayoutProps) => { Lagon logo @@ -135,7 +135,7 @@ const Layout = ({ title, anonymous, children }: LayoutProps) => { {t('header.settings')} - + {t('header.documentation')} diff --git a/packages/dashboard/lib/components/LayoutTitle.tsx b/packages/dashboard/lib/components/LayoutTitle.tsx index c30e36bff..b1307870c 100644 --- a/packages/dashboard/lib/components/LayoutTitle.tsx +++ b/packages/dashboard/lib/components/LayoutTitle.tsx @@ -1,5 +1,5 @@ import { ComponentProps, ReactElement, ReactNode } from 'react'; -import { Dot, Text } from '@lagon/ui'; +import { Dot, Text } from '@lagoss/ui'; type LayoutTitleProps = { title: string; diff --git a/packages/dashboard/lib/components/StatusBadge.tsx b/packages/dashboard/lib/components/StatusBadge.tsx index 09535f5cf..e2ab0323f 100644 --- a/packages/dashboard/lib/components/StatusBadge.tsx +++ b/packages/dashboard/lib/components/StatusBadge.tsx @@ -20,7 +20,7 @@ export const StatusBadge = () => { const [status, setStatus] = useState('up'); useEffect(() => { - fetch('https://status.lagon.app/status.json') + fetch('https://status.lagoss.com/status.json') .then(res => res.json()) .then(data => { setStatus(data.indicator); @@ -32,7 +32,7 @@ export const StatusBadge = () => { return ( diff --git a/packages/dashboard/lib/hooks/useFunctionLogs.ts b/packages/dashboard/lib/hooks/useFunctionLogs.ts index b6452aabb..7b4340690 100644 --- a/packages/dashboard/lib/hooks/useFunctionLogs.ts +++ b/packages/dashboard/lib/hooks/useFunctionLogs.ts @@ -1,4 +1,4 @@ -import { LogsLevel } from '@lagon/ui'; +import { LogsLevel } from '@lagoss/ui'; import { trpc } from 'lib/trpc'; import { LogsTimeframe } from 'lib/types'; diff --git a/packages/dashboard/lib/pages/function/FunctionDeployments.tsx b/packages/dashboard/lib/pages/function/FunctionDeployments.tsx index 140b75d8c..f98a1cf16 100644 --- a/packages/dashboard/lib/pages/function/FunctionDeployments.tsx +++ b/packages/dashboard/lib/pages/function/FunctionDeployments.tsx @@ -1,6 +1,6 @@ import toast from 'react-hot-toast'; import { getCurrentDomain, getFullCurrentDomain, getFullDomain } from 'lib/utils'; -import { Button, Card, EmptyState, Link, Text, Dialog } from '@lagon/ui'; +import { Button, Card, EmptyState, Link, Text, Dialog } from '@lagoss/ui'; import { ArrowPathIcon } from '@heroicons/react/24/outline'; import { trpc } from 'lib/trpc'; import useFunction from 'lib/hooks/useFunction'; @@ -24,7 +24,7 @@ const FunctionDeployments = ({ func, refetch }: FunctionDeploymentsProps) => { title={t('empty.title')} description={t('empty.description')} action={ - } diff --git a/packages/dashboard/lib/pages/function/FunctionLogs.tsx b/packages/dashboard/lib/pages/function/FunctionLogs.tsx index a24b3bf94..5a5d94dd3 100644 --- a/packages/dashboard/lib/pages/function/FunctionLogs.tsx +++ b/packages/dashboard/lib/pages/function/FunctionLogs.tsx @@ -1,7 +1,7 @@ import { ChevronDownIcon } from '@heroicons/react/24/outline'; import { useRouter } from 'next/router'; import { Suspense, useEffect, useState } from 'react'; -import { Button, Card, Divider, EmptyState, LOGS_LEVELS, LogLine, LogsLevel, Menu, Skeleton } from '@lagon/ui'; +import { Button, Card, Divider, EmptyState, LOGS_LEVELS, LogLine, LogsLevel, Menu, Skeleton } from '@lagoss/ui'; import useFunctionLogs from 'lib/hooks/useFunctionLogs'; import { LOGS_TIMEFRAMES, LogsTimeframe } from 'lib/types'; import useFunction from 'lib/hooks/useFunction'; @@ -23,7 +23,7 @@ const Content = ({ func, level, timeframe }: ContentProps) => { title={t('empty.title')} description={t('empty.description')} action={ - } diff --git a/packages/dashboard/lib/pages/function/FunctionOverview.tsx b/packages/dashboard/lib/pages/function/FunctionOverview.tsx index 8025cd9bd..50cf5d234 100644 --- a/packages/dashboard/lib/pages/function/FunctionOverview.tsx +++ b/packages/dashboard/lib/pages/function/FunctionOverview.tsx @@ -1,8 +1,7 @@ import { ChevronDownIcon } from '@heroicons/react/24/outline'; -import * as Sentry from '@sentry/nextjs'; import { useRouter } from 'next/router'; import { Suspense, useEffect, useMemo, useState } from 'react'; -import { Button, Card, Chart, Description, Divider, Menu, Skeleton, Text } from '@lagon/ui'; +import { Button, Card, Chart, Description, Divider, Menu, Skeleton, Text } from '@lagoss/ui'; import useFunctionStats from 'lib/hooks/useFunctionStats'; import { AnalyticsTimeframe, ANALYTICS_TIMEFRAMES } from 'lib/types'; import useFunction from 'lib/hooks/useFunction'; @@ -98,12 +97,6 @@ const Usage = ({ func, timeframe }: UsageProps) => { time, }); } catch (err) { - Sentry.captureException(err, { - tags: { - cron: func?.cron, - }, - }); - return t('usage.nextCron.label.invalid'); } }; diff --git a/packages/dashboard/lib/pages/function/FunctionSettings.tsx b/packages/dashboard/lib/pages/function/FunctionSettings.tsx index a4fa5821e..71e0654dc 100644 --- a/packages/dashboard/lib/pages/function/FunctionSettings.tsx +++ b/packages/dashboard/lib/pages/function/FunctionSettings.tsx @@ -1,6 +1,6 @@ import { useRouter } from 'next/router'; import toast from 'react-hot-toast'; -import { Button, Card, Form, Input, Text, Dialog, Menu, Divider, Dot } from '@lagon/ui'; +import { Button, Card, Form, Input, Text, Dialog, Menu, Divider, Dot } from '@lagoss/ui'; import { getCurrentDomain, getFullDomain } from 'lib/utils'; import { alphaNumUnderscoreValidator, @@ -24,7 +24,7 @@ import { trpc } from 'lib/trpc'; import useFunction from 'lib/hooks/useFunction'; import { QueryObserverBaseResult } from '@tanstack/react-query'; import { useScopedI18n } from 'locales'; -import { Copiable, Link } from '@lagon/ui'; +import { Copiable, Link } from '@lagoss/ui'; import { ComponentProps, ReactNode, useEffect, useState } from 'react'; import { getHumanFriendlyCron } from 'lib/utils'; import { isInSubnet } from 'is-in-subnet'; @@ -221,7 +221,7 @@ const FunctionSettings = ({ func, refetch }: FunctionSettingsProps) => { description={ <> {t('domains.description')}  - + {t('domains.doc')} @@ -260,7 +260,7 @@ const FunctionSettings = ({ func, refetch }: FunctionSettingsProps) => { ), })}   - + {t('domains.add.modal.doc')} @@ -340,7 +340,7 @@ const FunctionSettings = ({ func, refetch }: FunctionSettingsProps) => { description={ <> {t('cron.description')}  - + {t('cron.doc')} @@ -414,7 +414,7 @@ const FunctionSettings = ({ func, refetch }: FunctionSettingsProps) => { description={ <> {t('env.description')}  - + {t('env.doc')} diff --git a/packages/dashboard/lib/pages/functions/FunctionsList.tsx b/packages/dashboard/lib/pages/functions/FunctionsList.tsx index f8ead424f..40f6366b7 100644 --- a/packages/dashboard/lib/pages/functions/FunctionsList.tsx +++ b/packages/dashboard/lib/pages/functions/FunctionsList.tsx @@ -1,6 +1,6 @@ import FunctionLinks from 'lib/components/FunctionLinks'; import useFunctions from 'lib/hooks/useFunctions'; -import { Card, Dot, Text, Button, EmptyState } from '@lagon/ui'; +import { Card, Dot, Text, Button, EmptyState } from '@lagoss/ui'; import { useScopedI18n } from 'locales'; import { getHumanFriendlyCron } from 'lib/utils'; @@ -20,7 +20,7 @@ const FunctionsList = () => { description={t('empty.description')} image="/images/functions-empty.png" action={ - } diff --git a/packages/dashboard/lib/pages/settings/SettingsBillingUsage.tsx b/packages/dashboard/lib/pages/settings/SettingsBillingUsage.tsx index 5f7397a06..6882c7784 100644 --- a/packages/dashboard/lib/pages/settings/SettingsBillingUsage.tsx +++ b/packages/dashboard/lib/pages/settings/SettingsBillingUsage.tsx @@ -1,6 +1,6 @@ import { useSession } from 'next-auth/react'; import toast from 'react-hot-toast'; -import { Banner, Button, Card, Description, Skeleton, Text } from '@lagon/ui'; +import { Banner, Button, Card, Description, Skeleton, Text } from '@lagoss/ui'; import { trpc } from 'lib/trpc'; import { useScopedI18n } from 'locales'; import { getPlanFromPriceId } from 'lib/plans'; @@ -9,6 +9,7 @@ import useFunctions from 'lib/hooks/useFunctions'; import useFunctionsUsage from 'lib/hooks/useFunctionsUsage'; import useOrganizationMembers from 'lib/hooks/useOrganizationMembers'; import { useRouter } from 'next/router'; +import getConfig from 'next/config'; function formatNumber(number = 0) { return number.toLocaleString(); @@ -100,6 +101,8 @@ const SettingsBillingUsage = () => { currentPeriodEnd: session?.organization?.stripeCurrentPeriodEnd, }); + const { publicRuntimeConfig } = getConfig(); + return (
@@ -145,8 +148,8 @@ const SettingsBillingUsage = () => { disabled={isLoadingPlan || !isOrganizationOwner} onClick={() => checkout( - process.env.NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE_ID as string, - process.env.NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE_ID_METERED as string, + publicRuntimeConfig.STRIPE_PRO_PLAN_PRICE_ID as string, + publicRuntimeConfig.STRIPE_PRO_PLAN_PRICE_ID_METERED as string, ) } > diff --git a/packages/dashboard/lib/pages/settings/SettingsGeneral.tsx b/packages/dashboard/lib/pages/settings/SettingsGeneral.tsx index 44aca4c5b..00f34bdd6 100644 --- a/packages/dashboard/lib/pages/settings/SettingsGeneral.tsx +++ b/packages/dashboard/lib/pages/settings/SettingsGeneral.tsx @@ -2,7 +2,7 @@ import { useSession } from 'next-auth/react'; import toast from 'react-hot-toast'; import { composeValidators, maxLengthValidator, minLengthValidator, requiredValidator } from 'lib/form/validators'; import { useRouter } from 'next/router'; -import { Button, Card, Form, Input, Dialog, Textarea } from '@lagon/ui'; +import { Button, Card, Form, Input, Dialog, Textarea } from '@lagoss/ui'; import { ORGANIZATION_DESCRIPTION_MAX_LENGTH, ORGANIZATION_NAME_MAX_LENGTH, diff --git a/packages/dashboard/lib/pages/settings/SettingsMembers.tsx b/packages/dashboard/lib/pages/settings/SettingsMembers.tsx index 76abdcc32..440167b22 100644 --- a/packages/dashboard/lib/pages/settings/SettingsMembers.tsx +++ b/packages/dashboard/lib/pages/settings/SettingsMembers.tsx @@ -1,4 +1,4 @@ -import { Card, Text, Input, Button, Form, Dialog, Divider, Skeleton } from '@lagon/ui'; +import { Card, Text, Input, Button, Form, Dialog, Divider, Skeleton } from '@lagoss/ui'; import { composeValidators, emailValidator, requiredValidator } from 'lib/form/validators'; import useOrganizationMembers from 'lib/hooks/useOrganizationMembers'; import { trpc } from 'lib/trpc'; diff --git a/packages/dashboard/lib/plans.ts b/packages/dashboard/lib/plans.ts index b3dd069aa..54538fc5f 100644 --- a/packages/dashboard/lib/plans.ts +++ b/packages/dashboard/lib/plans.ts @@ -1,3 +1,5 @@ +import getConfig from 'next/config'; + export type Plan = { type: 'personal' | 'pro'; id?: string; @@ -21,9 +23,11 @@ export const PERSONAL_PLAN: Plan = { maxAssetsPerFunction: 100, }; +const { publicRuntimeConfig } = getConfig(); + export const PRO_PLAN: Plan = { type: 'pro', - id: process.env.NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE_ID, + id: publicRuntimeConfig.STRIPE_PRO_PLAN_PRICE_ID, expired: false, maxFunctions: 50, freeRequests: 5000000, diff --git a/packages/dashboard/lib/posthog.tsx b/packages/dashboard/lib/posthog.tsx index 3d8d1eba5..941cc1c03 100644 --- a/packages/dashboard/lib/posthog.tsx +++ b/packages/dashboard/lib/posthog.tsx @@ -2,10 +2,12 @@ import { ReactNode, useEffect } from 'react'; import { useRouter } from 'next/router'; import { PostHogProvider as OriginalPostHogProvider } from 'posthog-js/react'; import posthog from 'posthog-js'; +import getConfig from 'next/config'; if (typeof window !== 'undefined' && process.env.NODE_ENV !== 'development') { - posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY ?? '', { - api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST || 'https://app.posthog.com', + const { publicRuntimeConfig } = getConfig(); + posthog.init(publicRuntimeConfig.POSTHOG_KEY ?? '', { + api_host: publicRuntimeConfig.POSTHOG_HOST || 'https://app.posthog.com', }); } diff --git a/packages/dashboard/lib/smtp/Welcome.tsx b/packages/dashboard/lib/smtp/Welcome.tsx index 30efee036..5e66c58d9 100644 --- a/packages/dashboard/lib/smtp/Welcome.tsx +++ b/packages/dashboard/lib/smtp/Welcome.tsx @@ -17,29 +17,29 @@ export function Welcome({ name }: WelcomeProps) { - Welcome to Lagon, an open-source runtime and platform that allows developers to run TypeScript and JavaScript + Welcome to Lagoss, an open-source runtime and platform that allows developers to run TypeScript and JavaScript Serverless Functions at the Edge, close to users.
- Lagon + Lagoss Hi {name}, - Welcome to Lagon, an open-source runtime and platform that allows developers to run TypeScript and + Welcome to Lagoss, an open-source runtime and platform that allows developers to run TypeScript and JavaScript Serverless Functions at the Edge, close to users. We are excited to have you on board! Start your journey by deploying your first Function:
-
See you soon,
- Tom from Lagon + Tom from Lagoss
diff --git a/packages/dashboard/lib/smtp/index.tsx b/packages/dashboard/lib/smtp/index.tsx index 7f33d6b16..d92bd1897 100644 --- a/packages/dashboard/lib/smtp/index.tsx +++ b/packages/dashboard/lib/smtp/index.tsx @@ -1,7 +1,6 @@ import { createTransport } from 'nodemailer'; import { ReactElement } from 'react'; import { render } from '@react-email/render'; -import * as Sentry from '@sentry/nextjs'; import { Welcome } from './Welcome'; const createTransporter = () => { @@ -29,7 +28,6 @@ const sendEmail = async ({ to, subject, email }: { to: string; subject: string; html: render(email), }); } catch (error) { - Sentry.captureException(error); console.error(error); } }; @@ -37,6 +35,6 @@ const sendEmail = async ({ to, subject, email }: { to: string; subject: string; export const sendWelcomeEmail = async ({ to, name }: { to: string; name: string }) => sendEmail({ to, - subject: 'Welcome to Lagon', + subject: 'Welcome to Lagoss', email: , }); diff --git a/packages/dashboard/lib/trpc/functionsRouter.ts b/packages/dashboard/lib/trpc/functionsRouter.ts index e82c0dafd..658e3a571 100644 --- a/packages/dashboard/lib/trpc/functionsRouter.ts +++ b/packages/dashboard/lib/trpc/functionsRouter.ts @@ -11,7 +11,7 @@ import { FUNCTION_NAME_MAX_LENGTH, FUNCTION_NAME_MIN_LENGTH, } from 'lib/constants'; -import { LOGS_LEVELS } from '@lagon/ui'; +import { LOGS_LEVELS } from '@lagoss/ui'; import { TRPCError } from '@trpc/server'; import { T } from 'pages/api/trpc/[trpc]'; import { diff --git a/packages/dashboard/lib/utils.ts b/packages/dashboard/lib/utils.ts index 55d696620..9643d3fcf 100644 --- a/packages/dashboard/lib/utils.ts +++ b/packages/dashboard/lib/utils.ts @@ -1,24 +1,30 @@ import cronstrue from 'cronstrue'; +import getConfig from 'next/config'; /** * Example: * - * NEXT_PUBLIC_LAGON_ROOT_SCHEM=https - * NEXT_PUBLIC_LAGON_ROOT_DOMAIN=lagon.dev + * LAGOSS_ROOT_SCHEM=https + * LAGOSS_ROOT_DOMAIN=lagoss.com * name=hello-world * - * -> https://hello-world.lagon.dev + * -> https://hello-world.lagoss.com */ + export function getFullCurrentDomain({ name }: { name: string }): string { - return `${process.env.NEXT_PUBLIC_LAGON_ROOT_SCHEM}://${getCurrentDomain({ name })}`; + const { publicRuntimeConfig } = getConfig(); + return `${publicRuntimeConfig.LAGOSS_ROOT_SCHEM}://${getCurrentDomain({ name })}`; } export function getCurrentDomain({ name }: { name: string }): string { - return `${name}.${process.env.NEXT_PUBLIC_LAGON_ROOT_DOMAIN}`; + const { publicRuntimeConfig } = getConfig(); + return `${name}.${publicRuntimeConfig.LAGOSS_ROOT_DOMAIN}`; } export function getFullDomain(domain: string): string { - return `${process.env.NEXT_PUBLIC_LAGON_ROOT_SCHEM}://${domain}`; + const { publicRuntimeConfig } = getConfig(); + console.log(publicRuntimeConfig); + return `${publicRuntimeConfig.LAGOSS_ROOT_SCHEM}://${domain}`; } export function reloadSession() { diff --git a/packages/dashboard/locales/en.ts b/packages/dashboard/locales/en.ts index 729edac53..7df8fc3ef 100644 --- a/packages/dashboard/locales/en.ts +++ b/packages/dashboard/locales/en.ts @@ -83,7 +83,7 @@ export default { 'settings.transfer.success': 'Ownership of this Organization transferred successfully.', 'settings.transfer.notAvailable': 'Not available yet.', 'settings.transfer.notAvailable.description': - 'Please email contact@lagon.app if you want to transfer your Organization.', + 'Please email lagoss[at]ju60.de if you want to transfer your Organization.', 'settings.usage.title': 'Usage', 'settings.usage.description': @@ -133,7 +133,7 @@ export default { 'profile.delete.modal.confirm': 'Confirm with your email', 'profile.delete.modal.submit': 'Delete Account', 'profile.delete.notAvailable': 'Not available yet.', - 'profile.delete.notAvailable.description': 'Please email contact@lagon.app if you want to delete your Account.', + 'profile.delete.notAvailable.description': 'Please email lagoss[at]ju60.de if you want to delete your Account.', 'cli.title': 'Log in to the CLI', 'cli.description': 'This is your verification code to login in the CLI. Copy it and paste it in your terminal.', diff --git a/packages/dashboard/locales/fr.ts b/packages/dashboard/locales/fr.ts index 298f53965..2d2061ad5 100644 --- a/packages/dashboard/locales/fr.ts +++ b/packages/dashboard/locales/fr.ts @@ -87,7 +87,7 @@ export default defineLocale({ 'settings.transfer.success': "La propriété de l'Organisation a été transférée.", 'settings.transfer.notAvailable': 'Non disponible.', 'settings.transfer.notAvailable.description': - "Merci d'envoyer un email à contact@lagon.app si vous voulez transférer votre Organisation.", + "Merci d'envoyer un email à lagoss[at]ju60.de si vous voulez transférer votre Organisation.", 'settings.usage.title': 'Utilisation', 'settings.usage.description': @@ -139,7 +139,7 @@ export default defineLocale({ 'profile.delete.modal.submit': 'Supprimer ce Compte', 'profile.delete.notAvailable': 'Non disponible.', 'profile.delete.notAvailable.description': - "Merci d'envoyer un email à contact@lagon.app si vous voulez supprimer votre Compte.", + "Merci d'envoyer un email à lagoss[at]ju60.de si vous voulez supprimer votre Compte.", 'cli.title': 'Connexion à la CLI', 'cli.description': diff --git a/packages/dashboard/next.config.js b/packages/dashboard/next.config.js index 4f2dea7dd..6d5587904 100644 --- a/packages/dashboard/next.config.js +++ b/packages/dashboard/next.config.js @@ -1,28 +1,23 @@ -const { withSentryConfig } = require('@sentry/nextjs'); - /** @type {import('next').NextConfig} */ -const nextConfig = { +module.exports = { reactStrictMode: true, swcMinify: true, i18n: { locales: ['en', 'fr'], defaultLocale: 'en', }, - transpilePackages: ['@lagon/ui'], + transpilePackages: ['@lagoss/ui'], eslint: { ignoreDuringBuilds: true, }, typescript: { ignoreBuildErrors: true, }, - sentry: { - tunnelRoute: '/monitoring-tunnel', - }, output: process.env.NEXTJS_OUTPUT, + publicRuntimeConfig: { + STRIPE_PRO_PLAN_PRICE_ID: process.env.STRIPE_PRO_PLAN_PRICE_ID, + STRIPE_PRO_PLAN_PRICE_ID_METERED: process.env.STRIPE_PRO_PLAN_PRICE_ID_METERED, + LAGOSS_ROOT_SCHEM: process.env.LAGOSS_ROOT_SCHEM, + LAGOSS_ROOT_DOMAIN: process.env.LAGOSS_ROOT_DOMAIN, + }, }; - -const sentryWebpackPluginOptions = { - silent: true, -}; - -module.exports = withSentryConfig(nextConfig, sentryWebpackPluginOptions); diff --git a/packages/dashboard/package.json b/packages/dashboard/package.json index a2c38bf08..09610f6e4 100644 --- a/packages/dashboard/package.json +++ b/packages/dashboard/package.json @@ -1,6 +1,6 @@ { - "name": "@lagon/dashboard", - "version": "0.3.13", + "name": "@lagoss/dashboard", + "version": "0.4.1", "private": true, "scripts": { "dev": "next dev", @@ -17,7 +17,7 @@ "@aws-sdk/s3-request-presigner": "^3.186.0", "@headlessui/react": "^1.6.4", "@heroicons/react": "^2.0.0", - "@lagon/ui": "workspace:*", + "@lagoss/ui": "workspace:*", "@monaco-editor/react": "^4.5.1", "@next-auth/prisma-adapter": "^1.0.6", "@prisma/client": "^5.0.0", @@ -34,7 +34,6 @@ "@react-email/section": "^0.0.9", "@react-email/text": "^0.0.5", "@scaleway/use-random-name": "^0.3.0", - "@sentry/nextjs": "^7.57.0", "@tanstack/react-query": "^4.6.1", "@trpc/client": "^10.18.0", "@trpc/next": "^10.18.0", diff --git a/packages/dashboard/pages/_app.tsx b/packages/dashboard/pages/_app.tsx index 71451e459..8b039f65e 100644 --- a/packages/dashboard/pages/_app.tsx +++ b/packages/dashboard/pages/_app.tsx @@ -1,7 +1,7 @@ import { AppProps } from 'next/app'; import { SessionProvider } from 'next-auth/react'; import AuthGuard from 'lib/components/AuthGuard'; -import '@lagon/ui/src/styles/globals.css'; +import '@lagoss/ui/src/styles/globals.css'; import { Toaster } from 'react-hot-toast'; import Layout from 'lib/components/Layout'; import { I18nProvider, usePersistLocale } from 'locales'; diff --git a/packages/dashboard/pages/_error.js b/packages/dashboard/pages/_error.js index 09c7ec078..7c03d05ca 100644 --- a/packages/dashboard/pages/_error.js +++ b/packages/dashboard/pages/_error.js @@ -1,13 +1,11 @@ import NextErrorComponent from 'next/error'; -import * as Sentry from '@sentry/nextjs'; - const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => { if (!hasGetInitialPropsRun && err) { // getInitialProps is not called in case of // https://github.com/vercel/next.js/issues/8592. As a workaround, we pass // err via _app.js so it can be captured - Sentry.captureException(err); + console.error(err); // eslint-disable-line no-console // Flushing is not required in this case as it only happens on the client } @@ -17,13 +15,13 @@ const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => { MyError.getInitialProps = async context => { const errorInitialProps = await NextErrorComponent.getInitialProps(context); - const { res, err, asPath } = context; + const { res, err } = context; // Workaround for https://github.com/vercel/next.js/issues/8592, mark when // getInitialProps has run errorInitialProps.hasGetInitialPropsRun = true; - // Returning early because we don't want to log 404 errors to Sentry. + // Returning early because we don't want to log 404 errors. if (res?.statusCode === 404) { return errorInitialProps; } @@ -42,21 +40,12 @@ MyError.getInitialProps = async context => { // Boundaries: https://reactjs.org/docs/error-boundaries.html if (err) { - Sentry.captureException(err); - - // Flushing before returning is necessary if deploying to Vercel, see - // https://vercel.com/docs/platform/limits#streaming-responses - await Sentry.flush(2000); - return errorInitialProps; } // If this point is reached, getInitialProps was called without any // information about what the error might be. This is unexpected and may - // indicate a bug introduced in Next.js, so record it in Sentry - Sentry.captureException(new Error(`_error.js getInitialProps missing data at path: ${asPath}`)); - await Sentry.flush(2000); - + // indicate a bug introduced in Next.js return errorInitialProps; }; diff --git a/packages/dashboard/pages/api/auth/[...nextauth].ts b/packages/dashboard/pages/api/auth/[...nextauth].ts index 9e575012b..748dfbc4f 100644 --- a/packages/dashboard/pages/api/auth/[...nextauth].ts +++ b/packages/dashboard/pages/api/auth/[...nextauth].ts @@ -3,7 +3,6 @@ import GithubProvider from 'next-auth/providers/github'; import GoogleProvider from 'next-auth/providers/google'; import { PrismaAdapter } from '@next-auth/prisma-adapter'; import prisma from 'lib/prisma'; -import * as Sentry from '@sentry/nextjs'; import { createOrAssignDefaultOrganization } from 'lib/api/users'; import { sendWelcomeEmail } from 'lib/smtp'; @@ -34,7 +33,7 @@ export const authOptions: NextAuthOptions = { return false; } - if (process.env.LAGON_RESTRICT_LOGIN === 'false') { + if (process.env.LAGOSS_RESTRICT_LOGIN === 'false') { return true; } @@ -48,11 +47,6 @@ export const authOptions: NextAuthOptions = { return true; } - Sentry.captureMessage('User is not authorized to sign in', { - user: { - email: user.email, - }, - }); console.log('User is not authorized to sign in:', user.email); return false; @@ -100,12 +94,6 @@ export const authOptions: NextAuthOptions = { }, }); - Sentry.setUser({ - id: userFromDB.id, - username: userFromDB.name ?? 'Unknown', - email: userFromDB.email ?? 'Unknown', - }); - return { ...session, user: { diff --git a/packages/dashboard/pages/api/trpc/[trpc].ts b/packages/dashboard/pages/api/trpc/[trpc].ts index 06ab3c243..c06ae8a12 100644 --- a/packages/dashboard/pages/api/trpc/[trpc].ts +++ b/packages/dashboard/pages/api/trpc/[trpc].ts @@ -7,7 +7,6 @@ import { tokensRouter } from 'lib/trpc/tokensRouter'; import { deploymentsRouter } from 'lib/trpc/deploymentsRouter'; import prisma from 'lib/prisma'; import { Session } from 'next-auth'; -import * as Sentry from '@sentry/nextjs'; import { accountsRouter } from 'lib/trpc/accountsRouter'; import { NextApiRequest, NextApiResponse } from 'next'; import { authOptions } from '../auth/[...nextauth]'; @@ -21,8 +20,8 @@ const createContext = async ({ res: NextApiResponse; session: Session; }> => { - const tokenValue = req.headers['x-lagon-token'] as string; - const organizationId = req.headers['x-lagon-organization-id'] as string | undefined; + const tokenValue = req.headers['x-lagoss-token'] as string; + const organizationId = req.headers['x-lagoss-organization-id'] as string | undefined; // tokensAuthenticate needs to skip authentication if (req.query.trpc === 'tokensAuthenticate') { @@ -73,12 +72,6 @@ const createContext = async ({ }, }); - Sentry.setUser({ - id: token.user.id, - username: token.user.name ?? 'Unknown', - email: token.user.email ?? 'Unknown', - }); - return { req, res, @@ -137,9 +130,5 @@ export default trpcNext.createNextApiHandler({ createContext, onError: ({ error }) => { console.error(error); - - if (error.code === 'INTERNAL_SERVER_ERROR') { - Sentry.captureException(error); - } }, }); diff --git a/packages/dashboard/pages/api/webhooks/stripe.ts b/packages/dashboard/pages/api/webhooks/stripe.ts index ce8513f60..83aab50be 100644 --- a/packages/dashboard/pages/api/webhooks/stripe.ts +++ b/packages/dashboard/pages/api/webhooks/stripe.ts @@ -1,5 +1,4 @@ import { NextApiRequest, NextApiResponse } from 'next'; -import * as Sentry from '@sentry/nextjs'; import { stripe } from 'lib/stripe'; import type Stripe from 'stripe'; import prisma from 'lib/prisma'; @@ -39,8 +38,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) ); } catch (err) { console.log(err); - Sentry.captureException(err); - return res.status(400).end(); } diff --git a/packages/dashboard/pages/auth/error.tsx b/packages/dashboard/pages/auth/error.tsx index d71bacd31..2f9621cbd 100644 --- a/packages/dashboard/pages/auth/error.tsx +++ b/packages/dashboard/pages/auth/error.tsx @@ -1,6 +1,5 @@ -import { Text, Card, Button } from '@lagon/ui'; +import { Text, Card, Button } from '@lagoss/ui'; import { GitHubIcon } from 'lib/components/GitHubIcon'; -import { GoogleIcon } from 'lib/components/GoogleIcon'; import { useScopedI18n } from 'locales'; import { signIn, useSession } from 'next-auth/react'; import { useRouter } from 'next/router'; @@ -32,7 +31,7 @@ const Error = () => {
{error === 'AccessDenied' ? ( - ) : ( @@ -49,7 +48,7 @@ const Error = () => { > {t('github')} - + */}
)} diff --git a/packages/dashboard/pages/auth/signin.tsx b/packages/dashboard/pages/auth/signin.tsx index 670e46761..31c4a78bb 100644 --- a/packages/dashboard/pages/auth/signin.tsx +++ b/packages/dashboard/pages/auth/signin.tsx @@ -1,6 +1,6 @@ -import { Text, Card, Button } from '@lagon/ui'; +import { Text, Card, Button } from '@lagoss/ui'; import { GitHubIcon } from 'lib/components/GitHubIcon'; -import { GoogleIcon } from 'lib/components/GoogleIcon'; +// import { GoogleIcon } from 'lib/components/GoogleIcon'; import { useScopedI18n } from 'locales'; import { signIn, useSession } from 'next-auth/react'; import { useRouter } from 'next/router'; @@ -37,7 +37,7 @@ const SignIn = () => { > {t('github')} - + */} diff --git a/packages/dashboard/pages/cli.tsx b/packages/dashboard/pages/cli.tsx index d31f945fc..a8d01c808 100644 --- a/packages/dashboard/pages/cli.tsx +++ b/packages/dashboard/pages/cli.tsx @@ -1,4 +1,4 @@ -import { Text } from '@lagon/ui'; +import { Text } from '@lagoss/ui'; import useVerificationCode from 'lib/hooks/useVerificationCode'; import toast from 'react-hot-toast'; import LayoutTitle from 'lib/components/LayoutTitle'; diff --git a/packages/dashboard/pages/functions/[functionId].tsx b/packages/dashboard/pages/functions/[functionId].tsx index 416463d05..990bd2273 100644 --- a/packages/dashboard/pages/functions/[functionId].tsx +++ b/packages/dashboard/pages/functions/[functionId].tsx @@ -4,7 +4,7 @@ import FunctionOverview from 'lib/pages/function/FunctionOverview'; import FunctionSettings from 'lib/pages/function/FunctionSettings'; import FunctionDeployments from 'lib/pages/function/FunctionDeployments'; import FunctionLogs from 'lib/pages/function/FunctionLogs'; -import { Button, Nav } from '@lagon/ui'; +import { Button, Nav } from '@lagoss/ui'; import { PlayIcon } from '@heroicons/react/24/outline'; import Head from 'next/head'; import LayoutTitle from 'lib/components/LayoutTitle'; @@ -34,7 +34,7 @@ const Function = () => { > {func?.name ? ( - {func.name} - Lagon + {func.name} - Lagoss ) : null}