Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
54 lines (50 loc) 路 1.66 KB
/
Copy pathCargo.toml
File metadata and controls
54 lines (50 loc) 路 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Ported from package.json (JavaScript Standard Style).
# The npm `dependencies` block is intentionally absent: `standard` delegated
# linting to eslint + eslint-config-standard, which have no Rust equivalent on
# crates.io, so the rule engine is implemented in this crate (see src/rules.rs).
# `devDependencies` (tape, cross-spawn, minimist, ...) map onto the built-in
# test harness and std::process, so they carry no crates.io counterpart either.
[package]
name = "standard"
description = "JavaScript Standard Style"
version = "17.1.2"
authors = ["Feross Aboukhadijeh <feross@feross.org>"]
license = "MIT"
homepage = "https://standardjs.com"
repository = "https://github.com/standard/standard"
readme = "README.md"
edition = "2021"
# package.json `engines.node` -> cargo MSRV. This is what version-guard did at
# runtime in bin/cmd.cjs, moved to where a compiled language enforces it.
rust-version = "1.70"
keywords = ["lint", "style", "eslint", "standard", "javascript"]
categories = ["development-tools"]
# Ported from .npmignore: what the published artefact leaves behind. `.npmrc`
# set `package-lock=false`; Cargo.lock is kept instead because CI builds with
# `--locked`, which is the guarantee that setting was reaching for.
exclude = [
".editorconfig",
".github/",
".pre-commit-hooks.yaml",
"badge.png",
"badge.svg",
"docs/",
"sticker.png",
"sticker.svg",
"tests/",
"tmp/",
"tools/",
]
[lib]
name = "standard"
path = "src/lib.rs"
# package.json "bin": { "standard": "bin/cmd.cjs" }
[[bin]]
name = "standard"
path = "src/main.rs"
# tools/test-exists.js
[[bin]]
name = "test-exists"
path = "tools/test_exists.rs"
[profile.test]
debug = true