mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
Rename //src/ to //cli/ (#1962)
To better distinguish the deno_core crate from the executable deno, which will now be called "the cli" internally.
This commit is contained in:
parent
c7d81fa9ff
commit
fa3c35301a
32 changed files with 21 additions and 17 deletions
8
BUILD.gn
8
BUILD.gn
|
@ -154,7 +154,7 @@ deno_cargo_info = exec_script("build_extra/rust/get_cargo_info.py",
|
|||
"json")
|
||||
|
||||
rust_executable("deno") {
|
||||
source_root = "src/main.rs"
|
||||
source_root = "cli/main.rs"
|
||||
extern = main_extern
|
||||
deps = [
|
||||
":deno_deps",
|
||||
|
@ -170,7 +170,7 @@ rust_executable("deno") {
|
|||
}
|
||||
|
||||
rust_test("test_rs") {
|
||||
source_root = "src/main.rs"
|
||||
source_root = "cli/main.rs"
|
||||
extern = main_extern
|
||||
deps = [
|
||||
":deno_deps",
|
||||
|
@ -257,13 +257,13 @@ bundle("compiler_bundle") {
|
|||
|
||||
ts_flatbuffer("msg_ts") {
|
||||
sources = [
|
||||
"src/msg.fbs",
|
||||
"cli/msg.fbs",
|
||||
]
|
||||
}
|
||||
|
||||
rust_flatbuffer("msg_rs") {
|
||||
sources = [
|
||||
"src/msg.fbs",
|
||||
"cli/msg.fbs",
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,10 @@ members = [
|
|||
"core",
|
||||
]
|
||||
|
||||
[[bin]]
|
||||
name = "deno"
|
||||
path = "cli/main.rs"
|
||||
|
||||
[package]
|
||||
name = "deno"
|
||||
version = "0.3.3"
|
||||
|
|
|
@ -12,9 +12,9 @@ testPerm({ read: true }, async function statSyncSuccess() {
|
|||
assert(testingInfo.isDirectory());
|
||||
assert(!testingInfo.isSymlink());
|
||||
|
||||
const srcInfo = Deno.statSync("src");
|
||||
assert(srcInfo.isDirectory());
|
||||
assert(!srcInfo.isSymlink());
|
||||
const testsInfo = Deno.statSync("tests");
|
||||
assert(testsInfo.isDirectory());
|
||||
assert(!testsInfo.isSymlink());
|
||||
});
|
||||
|
||||
testPerm({ read: false }, async function statSyncPerm() {
|
||||
|
@ -54,9 +54,9 @@ testPerm({ read: true }, async function lstatSyncSuccess() {
|
|||
assert(!testingInfo.isDirectory());
|
||||
assert(testingInfo.isSymlink());
|
||||
|
||||
const srcInfo = Deno.lstatSync("src");
|
||||
assert(srcInfo.isDirectory());
|
||||
assert(!srcInfo.isSymlink());
|
||||
const testsInfo = Deno.lstatSync("tests");
|
||||
assert(testsInfo.isDirectory());
|
||||
assert(!testsInfo.isSymlink());
|
||||
});
|
||||
|
||||
testPerm({ read: false }, async function lstatSyncPerm() {
|
||||
|
@ -96,9 +96,9 @@ testPerm({ read: true }, async function statSuccess() {
|
|||
assert(testingInfo.isDirectory());
|
||||
assert(!testingInfo.isSymlink());
|
||||
|
||||
const srcInfo = await Deno.stat("src");
|
||||
assert(srcInfo.isDirectory());
|
||||
assert(!srcInfo.isSymlink());
|
||||
const testsInfo = await Deno.stat("tests");
|
||||
assert(testsInfo.isDirectory());
|
||||
assert(!testsInfo.isSymlink());
|
||||
});
|
||||
|
||||
testPerm({ read: false }, async function statPerm() {
|
||||
|
@ -138,9 +138,9 @@ testPerm({ read: true }, async function lstatSuccess() {
|
|||
assert(!testingInfo.isDirectory());
|
||||
assert(testingInfo.isSymlink());
|
||||
|
||||
const srcInfo = await Deno.lstat("src");
|
||||
assert(srcInfo.isDirectory());
|
||||
assert(!srcInfo.isSymlink());
|
||||
const testsInfo = await Deno.lstat("tests");
|
||||
assert(testsInfo.isDirectory());
|
||||
assert(!testsInfo.isSymlink());
|
||||
});
|
||||
|
||||
testPerm({ read: false }, async function lstatPerm() {
|
||||
|
|
|
@ -45,4 +45,4 @@ print "rustfmt"
|
|||
qrun([
|
||||
"third_party/rustfmt/" + platform() +
|
||||
"/rustfmt", "--config-path", rustfmt_config, "build.rs"
|
||||
] + find_exts(["src", "core"], [".rs"]))
|
||||
] + find_exts(["cli", "core"], [".rs"]))
|
||||
|
|
Loading…
Reference in a new issue