Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] build: add cargo feature to drop various tools #8381

Closed
wants to merge 40 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d49ccda
Feature gate tools
bartlomieju Nov 14, 2020
2531c45
Temp
bartlomieju Nov 14, 2020
9e82c61
dedup
bartlomieju Nov 14, 2020
d689693
more feature gating
bartlomieju Nov 14, 2020
d630f3b
format
bartlomieju Nov 14, 2020
cc4f148
Merge branch 'master' into cargo_features
bartlomieju Nov 14, 2020
85ae68b
rename
bartlomieju Nov 14, 2020
ffe81e7
fix
bartlomieju Nov 14, 2020
8188dcc
temp
bartlomieju Nov 15, 2020
3e90841
Merge branch 'master' into cargo_features
bartlomieju Nov 17, 2020
bef9b85
fmt and lint
bartlomieju Nov 17, 2020
1f8a821
strip more
bartlomieju Nov 17, 2020
858b966
lint
bartlomieju Nov 18, 2020
20abe7a
Merge branch 'master' into cargo_features
bartlomieju Nov 19, 2020
3465d6b
fix
bartlomieju Nov 19, 2020
8dda9d7
Merge branch 'master' into cargo_features
bartlomieju Nov 20, 2020
3a4aaab
remove cfg from inspector
bartlomieju Nov 20, 2020
b696cc5
Merge branch 'master' into cargo_features
bartlomieju Nov 22, 2020
fdc131c
reorg imports
bartlomieju Nov 22, 2020
954def6
wildcard match
bartlomieju Nov 22, 2020
a2780c4
reorg main.rs
bartlomieju Nov 22, 2020
d4b5ca2
remove unwrap
bartlomieju Nov 22, 2020
9d53924
Merge branch 'master' into cargo_features
bartlomieju Nov 25, 2020
b4c3289
Merge branch 'master' into cargo_features
bartlomieju Nov 25, 2020
08c2c15
fix
bartlomieju Nov 25, 2020
ee97a22
Merge branch 'master' into cargo_features
bartlomieju Nov 26, 2020
20fc996
fixes
bartlomieju Nov 26, 2020
470e9c4
fixes
bartlomieju Nov 26, 2020
78ef2a3
Merge branch 'master' into cargo_features
bartlomieju Nov 27, 2020
c8239c9
Merge branch 'master' into cargo_features
bartlomieju Nov 28, 2020
fc67677
Merge branch 'master' into cargo_features
bartlomieju Nov 28, 2020
9d70130
fmt
bartlomieju Nov 28, 2020
93b3a5c
factor out lib
bartlomieju Nov 28, 2020
aa8a1f0
lint
bartlomieju Nov 28, 2020
3e885d4
add basic ci check for "no-tools" mode
bartlomieju Nov 28, 2020
2eee3b2
dont remap stack trace if no tools
bartlomieju Nov 28, 2020
623faaa
Merge branch 'master' into cargo_features
bartlomieju Nov 30, 2020
f9c8251
Merge branch 'master' into cargo_features
bartlomieju Dec 1, 2020
259e849
lint notools
bartlomieju Dec 1, 2020
c4923d3
Merge branch 'master' into cargo_features
bartlomieju Dec 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reorg imports
  • Loading branch information
bartlomieju committed Nov 22, 2020
commit fdc131c4fd4f0ed9fa2d32aa5c53d63867004af2
41 changes: 22 additions & 19 deletions cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,28 @@ extern crate lazy_static;
#[macro_use]
extern crate log;

mod colors;
mod errors;
mod flags;
mod flags_allow_net;
mod fs_util;
mod http_util;
mod js;
mod metrics;
mod ops;
mod permissions;
mod program_state;
mod resolve_addr;
mod signal;
mod text_encoding;
mod tokio_util;
mod version;
mod worker;

#[cfg(feature = "tools")]
mod ast;
#[cfg(feature = "tools")]
mod checksum;
mod colors;
#[cfg(feature = "tools")]
mod deno_dir;
#[cfg(feature = "tools")]
Expand All @@ -18,56 +35,42 @@ mod diagnostics;
mod diff;
#[cfg(feature = "tools")]
mod disk_cache;
mod errors;
#[cfg(feature = "tools")]
mod file_fetcher;
#[cfg(feature = "tools")]
mod file_watcher;
mod flags;
mod flags_allow_net;
#[cfg(feature = "tools")]
mod fmt_errors;
#[cfg(not(feature = "tools"))]
mod fs_module_loader;
mod fs_util;
#[cfg(feature = "tools")]
mod http_cache;
mod http_util;
#[cfg(feature = "tools")]
mod import_map;
#[cfg(feature = "tools")]
mod info;
#[cfg(feature = "tools")]
mod inspector;
mod js;
#[cfg(feature = "tools")]
mod lockfile;
#[cfg(feature = "tools")]
mod media_type;
mod metrics;
#[cfg(feature = "tools")]
mod module_graph;
#[cfg(feature = "tools")]
mod module_loader;
mod ops;
mod permissions;
mod program_state;
mod resolve_addr;
mod signal;
#[cfg(feature = "tools")]
mod source_maps;
#[cfg(feature = "tools")]
mod specifier_handler;
mod text_encoding;
mod tokio_util;
#[cfg(feature = "tools")]
mod tools;
#[cfg(feature = "tools")]
mod tsc;
#[cfg(feature = "tools")]
mod tsc_config;
mod version;
mod worker;

// Compiled only for "lite" binary
#[cfg(not(feature = "tools"))]
mod fs_module_loader;

use crate::permissions::Permissions;
use crate::program_state::ProgramState;
Expand Down