Skip to content

Commit 069f74b

Browse files
committed
add new file
1 parent 59cbfb7 commit 069f74b

File tree

6,925 files changed

+1032883
-0
lines changed

Some content is hidden

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

6,925 files changed

+1032883
-0
lines changed

deno/.cargo/config.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[target.x86_64-pc-windows-msvc]
2+
rustflags = ["-C", "target-feature=+crt-static"]
3+
4+
[target.'cfg(all(windows, debug_assertions))']
5+
rustflags = [
6+
"-C",
7+
"target-feature=+crt-static",
8+
"-C",
9+
# increase the stack size to prevent overflowing the
10+
# stack in debug when launching sub commands
11+
"link-arg=/STACK:4194304",
12+
]
13+
14+
[target.x86_64-apple-darwin]
15+
rustflags = [
16+
"-C",
17+
"link-args=-weak_framework Metal -weak_framework MetalPerformanceShaders -weak_framework QuartzCore -weak_framework CoreGraphics",
18+
]
19+
20+
[target.aarch64-apple-darwin]
21+
rustflags = [
22+
"-C",
23+
"link-args=-fuse-ld=lld -weak_framework Metal -weak_framework MetalPerformanceShaders -weak_framework QuartzCore -weak_framework CoreGraphics",
24+
]
25+
26+
[target.'cfg(all())']
27+
rustflags = [
28+
"-D",
29+
"clippy::all",
30+
"-D",
31+
"clippy::await_holding_refcell_ref",
32+
"-D",
33+
"clippy::missing_safety_doc",
34+
"-D",
35+
"clippy::undocumented_unsafe_blocks",
36+
"--cfg",
37+
"tokio_unstable",
38+
]

deno/.cargo/local-build.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To run a build using a local tree:
2+
#
3+
# 0. Check out these repositories as siblings:
4+
#
5+
# - https://github.com/denoland/deno
6+
# - https://github.com/denoland/deno_core
7+
# - https://github.com/denoland/rusty_v8
8+
#
9+
# 1. From `deno`, run: cargo --config .cargo/local-build.toml build
10+
11+
[patch.crates-io]
12+
deno_core = { path = "../deno_core/core" }
13+
deno_ops = { path = "../deno_core/ops" }
14+
serde_v8 = { path = "../deno_core/serde_v8" }
15+
v8 = { path = "../rusty_v8" }

deno/.devcontainer/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM mcr.microsoft.com/vscode/devcontainers/rust:1-bullseye
2+
3+
# Install cmake and protobuf-compiler
4+
RUN apt-get update \
5+
&& apt-get install -y cmake \
6+
&& apt-get install -y protobuf-compiler \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
# Install Deno
10+
ENV DENO_INSTALL=/usr/local
11+
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
12+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "Rust",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
7+
"customizations": {
8+
"vscode": {
9+
"settings": {
10+
"lldb.executable": "/usr/bin/lldb",
11+
// VS Code don't watch files under ./target
12+
"files.watcherExclude": {
13+
"**/target/**": true
14+
},
15+
"extensions": [
16+
"rust-lang.rust-analyzer",
17+
"tamasfe.even-better-toml",
18+
"vadimcn.vscode-lldb",
19+
"mutantdino.resourcemonitor"
20+
]
21+
}
22+
}
23+
},
24+
"postCreateCommand": "git submodule update --init",
25+
"remoteUser": "vscode"
26+
}

deno/.dlint.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"rules": {
3+
"tags": ["recommended"],
4+
"include": [
5+
"ban-untagged-todo",
6+
"camelcase",
7+
"guard-for-in"
8+
],
9+
"exclude": [
10+
"no-invalid-triple-slash-reference"
11+
]
12+
}
13+
}

deno/.dprint.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"typescript": {
3+
"deno": true
4+
},
5+
"markdown": {
6+
"deno": true
7+
},
8+
"json": {
9+
"deno": true
10+
},
11+
"exec": {
12+
"commands": [{
13+
"command": "rustfmt --config imports_granularity=item",
14+
"exts": ["rs"]
15+
}]
16+
},
17+
"excludes": [
18+
".cargo_home",
19+
".git",
20+
"cli/bench/testdata/express-router.js",
21+
"cli/bench/testdata/npm/",
22+
"cli/tsc/dts/lib.d.ts",
23+
"cli/tsc/dts/lib.scripthost.d.ts",
24+
"cli/tsc/dts/lib.decorators*.d.ts",
25+
"cli/tsc/dts/lib.webworker*.d.ts",
26+
"cli/tsc/dts/lib.dom*.d.ts",
27+
"cli/tsc/dts/lib.es*.d.ts",
28+
"cli/tsc/dts/typescript.d.ts",
29+
"cli/tests/node_compat/test",
30+
"cli/tests/testdata/file_extensions/ts_with_js_extension.js",
31+
"cli/tests/testdata/fmt/badly_formatted.json",
32+
"cli/tests/testdata/fmt/badly_formatted.md",
33+
"cli/tests/testdata/fmt/badly_formatted.ipynb",
34+
"cli/tests/testdata/byte_order_mark.ts",
35+
"cli/tests/testdata/encoding",
36+
"cli/tests/testdata/fmt/",
37+
"cli/tests/testdata/lint/glob/",
38+
"cli/tests/testdata/test/glob/",
39+
"cli/tests/testdata/import_attributes/json_with_shebang.json",
40+
"cli/tests/testdata/run/error_syntax_empty_trailing_line.mjs",
41+
"cli/tests/testdata/run/inline_js_source_map*",
42+
"cli/tests/testdata/malformed_config/",
43+
"cli/tests/testdata/npm/registry/",
44+
"cli/tests/testdata/test/markdown_windows.md",
45+
"cli/tsc/*typescript.js",
46+
"gh-pages",
47+
"target",
48+
"test_ffi/tests/test.js",
49+
"test_util/std",
50+
"test_util/wpt",
51+
"third_party",
52+
"tools/node_compat/TODO.md",
53+
"tools/node_compat/node",
54+
"tools/wpt/expectation.json",
55+
"tools/wpt/manifest.json",
56+
"ext/websocket/autobahn/reports"
57+
],
58+
"plugins": [
59+
"https://plugins.dprint.dev/typescript-0.88.10.wasm",
60+
"https://plugins.dprint.dev/json-0.19.1.wasm",
61+
"https://plugins.dprint.dev/markdown-0.16.3.wasm",
62+
"https://plugins.dprint.dev/toml-0.6.0.wasm",
63+
"https://plugins.dprint.dev/exec-0.4.4.json@c207bf9b9a4ee1f0ecb75c594f774924baf62e8e53a2ce9d873816a408cecbf7"
64+
]
65+
}

deno/.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
indent_style = space
7+
indent_size = 2
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
11+
[*.out] # make editor neutral to .out files
12+
insert_final_newline = unset
13+
trim_trailing_whitespace = unset
14+
15+
[cli/tests/node_compat/test/**]
16+
insert_final_newline = unset
17+
trim_trailing_whitespace = unset

deno/.gitattributes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Use Unix line endings in all text files.
2+
* text=auto eol=lf
3+
*.png -text
4+
5+
/cli/tests/testdata/encoding/* -text
6+
7+
# Tell git which symlinks point to files, and which ones point to directories.
8+
# This is relevant for Windows only, and requires git >= 2.19.2 to work.
9+
/cli/tests/testdata/symlink_to_subdir symlink=dir
10+
11+
# Tell github these are vendored files.
12+
# Doesn't include them in the language statistics.
13+
/cli/tsc/00_typescript.js linguist-vendored
14+
/cli/dts/* linguist-vendored
15+
16+
# Keep Windows line endings in cross-platform doc check test file
17+
/cli/tests/testdata/test/markdown_windows.md eol=crlf
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: 🦕 Deploy Feedback
4+
url: https://github.com/denoland/deploy_feedback/
5+
about: Provide feature requests or bug reports for the Deno Deploy edge runtime.
6+
- name: 💬 Discord
7+
url: https://discord.gg/deno
8+
about: Join our community on Discord.

0 commit comments

Comments
 (0)