Skip to content

Commit

Permalink
Rename //src/ to //cli/ (denoland#1962)
Browse files Browse the repository at this point in the history
To better distinguish the deno_core crate from the executable deno,
which will now be called "the cli" internally.
  • Loading branch information
ry committed Mar 19, 2019
1 parent c7d81fa commit fa3c353
Show file tree
Hide file tree
Showing 32 changed files with 21 additions and 17 deletions.
8 changes: 4 additions & 4 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
]
}

Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ members = [
"core",
]

[[bin]]
name = "deno"
path = "cli/main.rs"

[package]
name = "deno"
version = "0.3.3"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions js/stat_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion tools/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ def qrun(cmd, env=None):
qrun([
"third_party/rustfmt/" + platform() +
"/rustfmt", "--config-path", rustfmt_config, "build.rs"
] + find_exts(["src", "core"], [".rs"]))
] + find_exts(["cli", "core"], [".rs"]))

0 comments on commit fa3c353

Please sign in to comment.