Skip to content

Commit

Permalink
refactor: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Aug 7, 2023
1 parent 5beacca commit 4121c02
Show file tree
Hide file tree
Showing 15 changed files with 623 additions and 175 deletions.
19 changes: 4 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions components/clarinet-deployments/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ impl Into<StacksEpochId> for EpochSpec {
}
}

#[derive(Debug, Clone)]
pub struct DeploymentGenerationArtifacts {
pub asts: BTreeMap<QualifiedContractIdentifier, ContractAST>,
pub deps: BTreeMap<QualifiedContractIdentifier, DependencySet>,
Expand Down
2 changes: 1 addition & 1 deletion components/clarinet-sdk/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dist/
pkg/
src-ts/sdk
node_modules/
38 changes: 24 additions & 14 deletions components/clarinet-sdk/cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ serde_json = "1.0"
clarinet-files = { path = "../clarinet-files", default-features = false }
clarity-repl = { path = "../clarity-repl", default-features = false, optional = true }
clarinet-deployments = { path = "../clarinet-deployments", default-features = false }

# WASM
console_error_panic_hook = { version = "0.1", optional = true }
js-sys = { version = "0.3", optional = true }
Expand All @@ -37,27 +36,38 @@ wasm = [
"clarinet-files/wasm",
]

[package.metadata.wasm-pack.profile.dev]
wasm-opt = ['-O1']
# DEV
[profile.dev]
inherits = "release"
opt-level = 3
debug = false
debug-assertions = false
incremental = false
codegen-units = 256

[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
debug-js-glue = true
demangle-name-section = true
dwarf-debug-info = false
[profile.dev.build-override]
inherits = "release"
opt-level = 3

[package.metadata.wasm-pack.profile.profiling]
wasm-opt = ['-O']
[package.metadata.wasm-pack.profile.dev]
wasm-opt = false

[package.metadata.wasm-pack.profile.profiling.wasm-bindgen]
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
debug-js-glue = false
demangle-name-section = true
dwarf-debug-info = false

# RELEASE
[profile.release]
opt-level = 3
debug = false
debug-assertions = false
lto = true
incremental = false
codegen-units = 16

[package.metadata.wasm-pack.profile.release]
# -04 aggressively optimizes for speed
wasm-opt = false
# -0z aggressively optimizes for size
# wasm-opt = ['-Oz']
wasm-opt = ['-O1']

[package.metadata.wasm-pack.profile.release.wasm-bindgen]
debug-js-glue = false
Expand Down
8 changes: 6 additions & 2 deletions components/clarinet-sdk/clarinet-sdk.code-workspace
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"folders": [{ "path": "../../" }],
"settings": {
// "rust-analyzer.checkOnSave.command": "clippy -p clarinet-sdk -- --no-deps",
// "rust-analyzer.check.command": "check",
"rust-analyzer.check.overrideCommand": [
"cargo",
"check",
"clippy",
"--no-default-features",
"--package=clarinet-sdk",
"--features=wasm",
"--message-format=json"
"--message-format=json",
"--",
"--no-deps"
]
}
}
Loading

0 comments on commit 4121c02

Please sign in to comment.