1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -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:
Ryan Dahl 2019-03-19 12:18:05 -04:00 committed by GitHub
parent c7d81fa9ff
commit fa3c35301a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 21 additions and 17 deletions

View file

@ -154,7 +154,7 @@ deno_cargo_info = exec_script("build_extra/rust/get_cargo_info.py",
"json") "json")
rust_executable("deno") { rust_executable("deno") {
source_root = "src/main.rs" source_root = "cli/main.rs"
extern = main_extern extern = main_extern
deps = [ deps = [
":deno_deps", ":deno_deps",
@ -170,7 +170,7 @@ rust_executable("deno") {
} }
rust_test("test_rs") { rust_test("test_rs") {
source_root = "src/main.rs" source_root = "cli/main.rs"
extern = main_extern extern = main_extern
deps = [ deps = [
":deno_deps", ":deno_deps",
@ -257,13 +257,13 @@ bundle("compiler_bundle") {
ts_flatbuffer("msg_ts") { ts_flatbuffer("msg_ts") {
sources = [ sources = [
"src/msg.fbs", "cli/msg.fbs",
] ]
} }
rust_flatbuffer("msg_rs") { rust_flatbuffer("msg_rs") {
sources = [ sources = [
"src/msg.fbs", "cli/msg.fbs",
] ]
} }

View file

@ -11,6 +11,10 @@ members = [
"core", "core",
] ]
[[bin]]
name = "deno"
path = "cli/main.rs"
[package] [package]
name = "deno" name = "deno"
version = "0.3.3" version = "0.3.3"

View file

@ -12,9 +12,9 @@ testPerm({ read: true }, async function statSyncSuccess() {
assert(testingInfo.isDirectory()); assert(testingInfo.isDirectory());
assert(!testingInfo.isSymlink()); assert(!testingInfo.isSymlink());
const srcInfo = Deno.statSync("src"); const testsInfo = Deno.statSync("tests");
assert(srcInfo.isDirectory()); assert(testsInfo.isDirectory());
assert(!srcInfo.isSymlink()); assert(!testsInfo.isSymlink());
}); });
testPerm({ read: false }, async function statSyncPerm() { testPerm({ read: false }, async function statSyncPerm() {
@ -54,9 +54,9 @@ testPerm({ read: true }, async function lstatSyncSuccess() {
assert(!testingInfo.isDirectory()); assert(!testingInfo.isDirectory());
assert(testingInfo.isSymlink()); assert(testingInfo.isSymlink());
const srcInfo = Deno.lstatSync("src"); const testsInfo = Deno.lstatSync("tests");
assert(srcInfo.isDirectory()); assert(testsInfo.isDirectory());
assert(!srcInfo.isSymlink()); assert(!testsInfo.isSymlink());
}); });
testPerm({ read: false }, async function lstatSyncPerm() { testPerm({ read: false }, async function lstatSyncPerm() {
@ -96,9 +96,9 @@ testPerm({ read: true }, async function statSuccess() {
assert(testingInfo.isDirectory()); assert(testingInfo.isDirectory());
assert(!testingInfo.isSymlink()); assert(!testingInfo.isSymlink());
const srcInfo = await Deno.stat("src"); const testsInfo = await Deno.stat("tests");
assert(srcInfo.isDirectory()); assert(testsInfo.isDirectory());
assert(!srcInfo.isSymlink()); assert(!testsInfo.isSymlink());
}); });
testPerm({ read: false }, async function statPerm() { testPerm({ read: false }, async function statPerm() {
@ -138,9 +138,9 @@ testPerm({ read: true }, async function lstatSuccess() {
assert(!testingInfo.isDirectory()); assert(!testingInfo.isDirectory());
assert(testingInfo.isSymlink()); assert(testingInfo.isSymlink());
const srcInfo = await Deno.lstat("src"); const testsInfo = await Deno.lstat("tests");
assert(srcInfo.isDirectory()); assert(testsInfo.isDirectory());
assert(!srcInfo.isSymlink()); assert(!testsInfo.isSymlink());
}); });
testPerm({ read: false }, async function lstatPerm() { testPerm({ read: false }, async function lstatPerm() {

View file

@ -45,4 +45,4 @@ print "rustfmt"
qrun([ qrun([
"third_party/rustfmt/" + platform() + "third_party/rustfmt/" + platform() +
"/rustfmt", "--config-path", rustfmt_config, "build.rs" "/rustfmt", "--config-path", rustfmt_config, "build.rs"
] + find_exts(["src", "core"], [".rs"])) ] + find_exts(["cli", "core"], [".rs"]))