-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update * Create deno.lock Signed-off-by: FortiShield <161459699+FortiShield@users.noreply.github.com> --------- Signed-off-by: FortiShield <161459699+FortiShield@users.noreply.github.com>
- Loading branch information
1 parent
749b3eb
commit 5cec9f3
Showing
271 changed files
with
15,612 additions
and
66,171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
FROM mcr.microsoft.com/devcontainers/rust:1-1-bookworm | ||
FROM mcr.microsoft.com/devcontainers/rust:dev-1-bookworm | ||
|
||
ARG TARGETPLATFORM | ||
ARG ONNXRUNTIME_VERSION | ||
|
||
RUN apt-get update && apt-get install -y build-essential cmake libclang-dev lldb \ | ||
nodejs npm hyperfine | ||
|
||
COPY scripts/install_onnx.sh /tmp/install_onnx.sh | ||
COPY scripts/download_models.sh /tmp/download_models.sh | ||
|
||
WORKDIR /tmp | ||
RUN ./install_onnx.sh $ONNXRUNTIME_VERSION $TARGETPLATFORM /usr/local/bin/libonnxruntime.so | ||
RUN ./download_models.sh | ||
RUN mkdir -p /etc/sb_ai && cp -r /tmp/models /etc/sb_ai/models | ||
|
||
ENV ORT_DYLIB_PATH=/usr/local/bin/libonnxruntime.so | ||
ENV SB_AI_MODELS_DIR=/etc/sb_ai/models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
target/ | ||
k6/ | ||
examples/ | ||
assets/ | ||
.vscodes/ | ||
.github/ | ||
|
||
scripts/* | ||
!scripts/install_onnx.sh | ||
!scripts/download_models.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
Copy this file into '.vscode/launch.json' or merge its contents into your existing | ||
configurations. | ||
*/ | ||
|
||
{ | ||
"configurations": [ | ||
{ | ||
"name": "Debug Runtime", | ||
"type": "lldb", | ||
"request": "launch", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--bin=edge-runtime", | ||
"--features=cli/tracing" | ||
], | ||
"filter": { | ||
"kind": "bin" | ||
} | ||
}, | ||
"cwd": "${workspaceFolder}", | ||
"sourceLanguages": [ | ||
"rust" | ||
], | ||
"args": [ | ||
"-v", | ||
"start", | ||
"--main-service", | ||
"./examples/main", | ||
"--event-worker", | ||
"./examples/event-manager" | ||
|
||
// To enable the inspector capability, uncomment the line below. | ||
// "--inspect-brk" | ||
|
||
// If you want to listen to the inspect session on a different port, uncomment the | ||
// line below instead. | ||
// "--inspect-brk=127.0.0.1:<PORT>" | ||
|
||
// If you want to allow an inspector session to be created on the main worker, | ||
// uncomment the line below. | ||
// | ||
// This flag must be used in combination with the flag above. | ||
// "--inspect-main" | ||
], | ||
"env": { | ||
"RUST_BACKTRACE": "full", | ||
"EDGE_RUNTIME_PORT": "9998" | ||
|
||
// If you want to get a detailed log, uncomment below. | ||
// Value of environment variable below is described in detail in the links below: | ||
// https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives | ||
// "RUST_LOG": "trace" | ||
} | ||
}, | ||
{ | ||
"name": "Attach V8 Inspector", | ||
"type": "node", | ||
"address": "127.0.0.1", | ||
"request": "attach", | ||
"localRoot": "/", | ||
"remoteRoot": "/", | ||
"timeout": 1000000, | ||
|
||
// Properties below are optional. | ||
"restart": true, | ||
|
||
// Inspector is accepting sessions on 9229 by default. If you changed the listening port | ||
// via the inspector flag above, this value must also be changed. | ||
"port": 9229 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
Copy this file into '.vscode/settings.json' or merge its contents into your existing | ||
configurations. | ||
*/ | ||
|
||
{ | ||
"lldb.launch.preRunCommands": [ | ||
"script lldb.debugger.HandleCommand('settings set target.source-map /rustc/{} \"{}/lib/rustlib/src/rust\"'.format(os.popen('rustc --version --verbose').read().split('commit-hash: ')[1].split('\\n')[0].strip(), os.popen('rustc --print sysroot').readline().strip()))" | ||
], | ||
"rust-analyzer.cargo.features": [ | ||
"cli/tracing" | ||
], | ||
"rust-analyzer.diagnostics.disabled": [ | ||
"E0308" | ||
], | ||
"editor.rulers": [ | ||
100 | ||
] | ||
} |
Oops, something went wrong.