Skip to content

Commit

Permalink
improvement: reduce memory size of workspace (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wodann authored Oct 31, 2022
1 parent 3e90eb1 commit 3f7b316
Show file tree
Hide file tree
Showing 23 changed files with 186 additions and 175 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Reduce workspace target folder size from 10.9 GB to 10.6 GB
- Reduce workspace build dependencies from 296 to 270
- Reduce workspace dev dependencies from 502 to 496

## [0.3.0] - 2021-04-12

The third Mun release includes big usability improvements; multi-file projects, a language server with diagnostics and autocompletion, and improvements to robustness and developer workflow to name a few.
Expand Down
8 changes: 4 additions & 4 deletions crates/mun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ categories = ["command-line-interface", "game-development", "mun"]
default-run = "mun"

[dependencies]
anyhow = "1.0.31"
clap = { version = "3.1.18", features=["derive"] }
log = "0.4"
pretty_env_logger = "0.4"
anyhow = { version = "1.0.31", default-features = false }
clap = { version = "3.1.18", default-features = false, features = ["std", "derive"] }
log = { version = "0.4", default-features = false }
pretty_env_logger = { version = "0.4", default-features = false }
mun_abi = { version = "=0.3.0", path = "../mun_abi" }
mun_compiler = { version = "=0.3.0", path = "../mun_compiler" }
mun_compiler_daemon = { version = "=0.3.0", path = "../mun_compiler_daemon" }
Expand Down
8 changes: 4 additions & 4 deletions crates/mun_abi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ categories = ["api-bindings", "game-development", "mun"]

[dependencies]
once_cell = "1.4.0"
itertools = "0.10.3"
parking_lot = "0.12.0"
extendhash = "1.0.9"
serde = { version="1.0.137", optional = true}
itertools = { version = "0.10.3", default-features = false }
parking_lot = { version = "0.12.0", default-features = false }
extendhash = { version = "1.0.9", default-features = false }
serde = { version = "1.0.137", default-features = false, optional = true }
2 changes: 1 addition & 1 deletion crates/mun_capi_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ keywords = ["game", "hot-reloading", "language", "mun", "scripting"]
categories = ["game-development", "mun"]

[dependencies]
insta = { version ="1.12.0", features=["ron"], optional=true}
insta = { version = "1.12.0", default-features = false, features = ["ron"], optional = true }
36 changes: 18 additions & 18 deletions crates/mun_codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,30 @@ keywords = ["game", "hot-reloading", "language", "mun", "scripting"]
categories = ["Game development", "Mun"]

[dependencies]
rustc-hash = "1.1.0"
abi = { version = "=0.3.0", path = "../mun_abi", package = "mun_abi" }
bytemuck = "1.4.1"
anyhow = { version = "1.0.31", default-features = false, features = ["std"] }
array-init = { version = "2.0.0", default-features = false }
by_address = { version = "1.0.4", default-features = false }
bytemuck = { version = "1.4.1", default-features = false }
hir = { version = "=0.3.0", path = "../mun_hir", package = "mun_hir" }
itertools = "0.10.3"
inkwell = { version = "=0.1.0-beta.4", default-features = false, features = ["llvm12-0", "no-libffi-linking", "target-x86", "target-aarch64"] }
itertools = { version = "0.10.3", default-features = false }
mun_codegen_macros = { version = "=0.1.0", path = "../mun_codegen_macros", package = "mun_codegen_macros" }
mun_target = { version = "=0.3.0", path = "../mun_target" }
lld_rs = "120.0.1"
anyhow = "1.0.31"
thiserror = "1.0.19"
salsa = "0.16.1"
array-init="2.0.0"
tempfile = "3"
paste = "1.0.7"
parking_lot = "0.12.0"
inkwell = { version = "=0.1.0-beta.4", features = ["llvm12-0", "no-libffi-linking"]}
by_address = "1.0.4"
paths = { version="=0.1.0", path="../mun_paths", package="mun_paths"}
smallvec = { version = "1.6.1", features=["union"] }
once_cell = "1.4.0"
once_cell = { version = "1.4.0", default-features = false }
lld_rs = { version = "120.0.1", default-features = false }
parking_lot = { version = "0.12.0", default-features = false }
paste = { version = "1.0.7", default-features = false }
paths = { version="=0.1.0", path = "../mun_paths", package="mun_paths" }
rustc-hash = { version = "1.1.0", default-features = false }
salsa = { version = "0.16.1", default-features = false }
smallvec = { version = "1.6.1", features = ["union"], default-features = false }
tempfile = { version = "3", default-features = false }
thiserror = { version = "1.0.19", default-features = false }

[dev-dependencies]
abi = { path = "../mun_abi", package = "mun_abi", features=["serde"] }
insta = { version="1.12.0", features = ["ron"]}
abi = { path = "../mun_abi", package = "mun_abi", features = ["serde"] }
insta = { version = "1.12.0", default-features = false, features = ["ron"] }
libloader = { path = "../mun_libloader", package = "mun_libloader" }
mun_test = { path = "../mun_test" }
runtime = { path = "../mun_runtime", package = "mun_runtime" }
6 changes: 3 additions & 3 deletions crates/mun_codegen_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ categories = ["Game development", "Mun"]
proc-macro = true

[dependencies]
proc-macro2 = "1.0"
quote = "1.0"
syn = "1.0"
proc-macro2 = { version = "1.0", default-features = false }
quote = { version = "1.0", default-features = false }
syn = { version = "1.0", default-features = false, features = ["derive", "parsing", "printing", "proc-macro"] }
24 changes: 12 additions & 12 deletions crates/mun_compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ keywords = ["game", "hot-reloading", "language", "mun", "scripting"]
categories = ["game-development", "mun"]

[dependencies]
anyhow = "1.0.31"
mun_codegen = { version = "=0.3.0", path="../mun_codegen" }
mun_syntax = { version = "=0.3.0", path="../mun_syntax" }
hir = { version="=0.3.0", path="../mun_hir", package="mun_hir" }
paths = { version="=0.1.0", path="../mun_paths", package="mun_paths"}
mun_target = { version = "=0.3.0", path="../mun_target" }
hir = { version = "=0.3.0", path = "../mun_hir", package = "mun_hir" }
mun_codegen = { version = "=0.3.0", path = "../mun_codegen" }
mun_syntax = { version = "=0.3.0", path = "../mun_syntax" }
mun_target = { version = "=0.3.0", path = "../mun_target" }
mun_project = { version = "=0.1.0", path = "../mun_project" }
mun_diagnostics = { version = "=0.1.0", path = "../mun_diagnostics" }
annotate-snippets = { version = "0.9.0", features = ["color"] }
yansi-term = "0.1.2"
walkdir = "2.3"
log = "0.4"
lockfile = "0.4.0"
paths = { version = "=0.1.0", path = "../mun_paths", package = "mun_paths"}
annotate-snippets = { version = "0.9.0", default-features = false, features = ["color"] }
anyhow = { version = "1.0.31", default-features = false }
lockfile = { version = "0.4.0", default-features = false }
log = { version = "0.4", default-features = false }
walkdir = { version = "2.3", default-features = false }
yansi-term = { version = "0.1.2", default-features = false }

[dev-dependencies]
insta = "1.12.0"
insta = { version = "1.12.0", default-features = false }
8 changes: 4 additions & 4 deletions crates/mun_compiler_daemon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ keywords = ["game", "hot-reloading", "language", "mun", "scripting"]
categories = ["game-development", "mun"]

[dependencies]
anyhow = "1.0.31"
anyhow = { version = "1.0.31", default-features = false }
ctrlc = { version = "3.1", default-features = false }
log = { version = "0.4", default-features = false }
mun_codegen = { version = "=0.3.0", path = "../mun_codegen" }
mun_compiler = { version = "=0.3.0", path = "../mun_compiler" }
mun_project = { version = "=0.1.0", path = "../mun_project" }
mun_hir = { version = "=0.3.0", path = "../mun_hir" }
notify = "4.0"
ctrlc = "3.1"
log = "0.4"
notify = { version = "4.0", default-features = false }
22 changes: 11 additions & 11 deletions crates/mun_hir/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ keywords = ["game", "hot-reloading", "language", "mun", "scripting"]
categories = ["game-development", "mun"]

[dependencies]
salsa = "0.16.1"
mun_syntax = { version = "=0.3.0", path = "../mun_syntax" }
mun_target = { version = "=0.3.0", path = "../mun_target" }
paths = { version="=0.1.0", path="../mun_paths", package="mun_paths"}
rustc-hash = "1.1"
once_cell = "1.4.0"
ena = "0.14"
drop_bomb = "0.1.4"
either = "1.5.3"
itertools = "0.10.0"
smallvec = { version = "1.6.1", features=["union"] }
drop_bomb = { version = "0.1.4", default-features = false }
either = { version = "1.5.3", default-features = false }
ena = { version = "0.14", default-features = false }
itertools = { version = "0.10.0", default-features = false }
once_cell = { version = "1.4.0", default-features = false }
rustc-hash = { version = "1.1", default-features = false }
salsa = { version = "0.16.1", default-features = false }
smallvec = { version = "1.6.1", features = ["union"], default-features = false }

[dev-dependencies]
insta = "1.12.0"
text_trees = "0.1.2"
parking_lot = "0.12.0"
mun_test = { path = "../mun_test" }
insta = { version = "1.12.0", default-features = false }
parking_lot = { version = "0.12.0", default-features = false }
text_trees = { version = "0.1.2", default-features = false }
42 changes: 21 additions & 21 deletions crates/mun_language_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,30 @@ keywords = ["game", "hot-reloading", "language", "mun", "scripting"]
categories = ["game-development", "mun"]

[dependencies]
rustc-hash="1.1.0"
lsp-types = "0.93.0"
lsp-server = "0.6.0"
log = "0.4"
serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
anyhow = "1.0"
thiserror = "1.0.19"
salsa = "0.16.1"
hir = { version = "=0.3.0", path="../mun_hir", package="mun_hir" }
threadpool="1.8.1"
vfs = { version = "=0.1.0", path = "../mun_vfs", package="mun_vfs" }
project = { version = "=0.1.0", path = "../mun_project", package="mun_project" }
mun_target = { version = "=0.3.0", path = "../mun_target" }
mun_syntax = { version = "=0.3.0", path = "../mun_syntax" }
mun_diagnostics = { version = "=0.1.0", path = "../mun_diagnostics" }
crossbeam-channel = "0.5.0"
parking_lot = "0.12.0"
mun_syntax = { version = "=0.3.0", path = "../mun_syntax" }
mun_target = { version = "=0.3.0", path = "../mun_target" }
paths = { version = "=0.1.0", path="../mun_paths", package="mun_paths"}
ra_ap_text_edit="0.0.132"
project = { version = "=0.1.0", path = "../mun_project", package="mun_project" }
vfs = { version = "=0.1.0", path = "../mun_vfs", package="mun_vfs" }
anyhow = { version = "1.0", default-features = false }
crossbeam-channel = { version = "0.5.0", default-features = false }
log = { version = "0.4", default-features = false }
lsp-types = { version = "0.93.0", default-features = false }
lsp-server = { version = "0.6.0", default-features = false }
parking_lot = { version = "0.12.0", default-features = false }
ra_ap_text_edit = { version = "0.0.132", default-features = false }
rustc-hash = { version = "1.1.0", default-features = false }
salsa = { version = "0.16.1", default-features = false }
serde = { version = "1.0", default-features = false }
serde_derive = { version = "1.0", default-features = false }
serde_json = { version = "1.0", default-features = false }
thiserror = { version = "1.0.19", default-features = false }
threadpool = { version = "1.8.1", default-features = false }

[dev-dependencies]
tempdir = "0.3.7"
mun_test = { path = "../mun_test"}
insta = "1.12.0"
itertools = "0.10.0"
insta = { version = "1.12.0", default-features = false }
itertools = { version = "0.10.0", default-features = false }
tempdir = { version = "0.3.7", default-features = false }
6 changes: 3 additions & 3 deletions crates/mun_libloader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ categories = ["game-development", "mun"]

[dependencies]
abi = { version = "=0.3.0", path = "../mun_abi", package = "mun_abi" }
anyhow = "1.0"
libloading = "0.7"
tempfile = "3"
anyhow = { version = "1.0", default-features = false, features = ["std"] }
libloading = { version = "0.7", default-features = false }
tempfile = { version = "3", default-features = false }
16 changes: 8 additions & 8 deletions crates/mun_memory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ categories = ["game-development", "mun"]

[dependencies]
abi = { version = "=0.3.0", path = "../mun_abi", package = "mun_abi" }
itertools = "0.10.3"
lazy_static = "1.4.0"
once_cell = "1.4.0"
parking_lot = "0.12.0"
rustc-hash = "1.1"
thiserror = "1.0.19"
capi_utils = { version = "=0.1.0", path = "../mun_capi_utils", package= "mun_capi_utils" }
itertools = { version = "0.10.3", default-features = false }
lazy_static = { version = "1.4.0", default-features = false }
once_cell = { version = "1.4.0", default-features = false }
parking_lot = { version = "0.12.0", default-features = false }
rustc-hash = { version = "1.1", default-features = false, features = ["std"] }
thiserror = { version = "1.0.19", default-features = false }

[dev-dependencies]
paste = "1.0"
capi_utils = { version = "=0.1.0", path = "../mun_capi_utils", package= "mun_capi_utils", features = ["insta"] }
insta = { version = "1.12.0", features = ["ron"]}
insta = { version = "1.12.0", default-features = false, features = ["ron"] }
paste = { version = "1.0", default-features = false }
2 changes: 1 addition & 1 deletion crates/mun_paths/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ keywords = ["game", "hot-reloading", "language", "mun", "scripting"]
categories = ["game-development", "mun"]

[dependencies]
relative-path = "1.2"
relative-path = { version = "1.2", default-features = false }
12 changes: 6 additions & 6 deletions crates/mun_project/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ keywords = ["game", "hot-reloading", "language", "mun", "scripting"]
categories = ["game-development", "mun"]

[dependencies]
rustc-hash = "1.1.0"
serde = "1.0"
serde_derive = "1.0"
toml = "0.5"
semver = { version = "1.0", features = ["serde"] }
anyhow = "1.0"
paths = { version="=0.1.0", path="../mun_paths", package="mun_paths" }
anyhow = { version = "1.0", default-features = false }
rustc-hash = { version = "1.1.0", default-features = false, features = ["std"] }
semver = { version = "1.0", default-features = false, features = ["serde"] }
serde = { version = "1.0", default-features = false }
serde_derive = { version = "1.0", default-features = false }
toml = { version = "0.5", default-features = false }
30 changes: 15 additions & 15 deletions crates/mun_runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ categories = ["game-development", "mun"]

[dependencies]
abi = { version = "=0.3.0", path = "../mun_abi", package = "mun_abi" }
anyhow = "1.0"
itertools = "0.10.3"
capi_utils = { version = "=0.1.0", path = "../mun_capi_utils", package = "mun_capi_utils" }
libloader = { version = "=0.1.0", path = "../mun_libloader", package = "mun_libloader" }
log = "0.4"
memory = { version = "=0.2.0", path = "../mun_memory", package = "mun_memory" }
capi_utils = { version = "=0.1.0", path = "../mun_capi_utils", package = "mun_capi_utils" }
mun_project = { version = "=0.1.0", path = "../mun_project" }
notify = "4.0.12"
once_cell = "1.4.0"
parking_lot = "0.12.0"
rustc-hash = "1.1"
seq-macro = "0.3.0"
anyhow = { version = "1.0", default-features = false }
itertools = { version = "0.10.3", default-features = false, features = ["use_alloc"] }
log = { version = "0.4", default-features = false }
notify = "5.0.0"
once_cell = { version = "1.4.0", default-features = false }
parking_lot = { version = "0.12.0", default-features = false }
rustc-hash = { version = "1.1", default-features = false }
seq-macro = { version = "0.3.0", default-features = false }

[dev-dependencies]
bevy = { version = "0.8", default-features = false }
compiler = { version="=0.3.0", path="../mun_compiler", package = "mun_compiler" }
criterion = "0.4"
mlua = { package ="mlua", version="0.8", default-features = false, features=["vendored", "luajit"] }
compiler = { version = "=0.3.0", path = "../mun_compiler", package = "mun_compiler" }
mun_test = { path = "../mun_test" }
tempfile = "3"
termcolor = "1.1"
bevy = { version = "0.8", default-features = false }
criterion = { version = "0.4", default-features = false }
mlua = { package = "mlua", version = "0.8", default-features = false, features = ["vendored", "luajit"] }
tempfile = { version = "3", default-features = false }
termcolor = { version = "1.1", default-features = false }
wasmer = { version = "2.2.1", default-features = false, features = ["sys-default"] }

[[bench]]
Expand Down
Loading

0 comments on commit 3f7b316

Please sign in to comment.