Merge pull request #1072 from napi-rs/format-toml
style: format toml files
This commit is contained in:
commit
00201aa27f
12 changed files with 72 additions and 26 deletions
|
@ -11,9 +11,7 @@ members = [
|
||||||
"./memory-testing",
|
"./memory-testing",
|
||||||
]
|
]
|
||||||
|
|
||||||
exclude = [
|
exclude = ["./testing"]
|
||||||
"./testing"
|
|
||||||
]
|
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
|
|
|
@ -9,7 +9,11 @@ version = "0.1.0"
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
napi = {path = "../crates/napi", features = ["tokio_rt", "serde-json", "compat-mode"]}
|
napi = { path = "../crates/napi", features = [
|
||||||
|
"tokio_rt",
|
||||||
|
"serde-json",
|
||||||
|
"compat-mode",
|
||||||
|
] }
|
||||||
napi-derive = { path = "../crates/macro", features = ["compat-mode"] }
|
napi-derive = { path = "../crates/macro", features = ["compat-mode"] }
|
||||||
serde = "1"
|
serde = "1"
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
|
|
|
@ -68,4 +68,8 @@ optional = true
|
||||||
version = "1"
|
version = "1"
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
windows = {version = "0.30", features = ["Win32_System_WindowsProgramming", "Win32_System_LibraryLoader", "Win32_Foundation"]}
|
windows = { version = "0.32", features = [
|
||||||
|
"Win32_System_WindowsProgramming",
|
||||||
|
"Win32_System_LibraryLoader",
|
||||||
|
"Win32_Foundation",
|
||||||
|
] }
|
||||||
|
|
|
@ -14,7 +14,12 @@ napi3 = ["napi/napi3"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
napi = {path = "../../crates/napi", features = ["tokio_rt", "serde-json", "latin1", "compat-mode"]}
|
napi = { path = "../../crates/napi", features = [
|
||||||
|
"tokio_rt",
|
||||||
|
"serde-json",
|
||||||
|
"latin1",
|
||||||
|
"compat-mode",
|
||||||
|
] }
|
||||||
napi-derive = { path = "../../crates/macro", features = ["compat-mode"] }
|
napi-derive = { path = "../../crates/macro", features = ["compat-mode"] }
|
||||||
serde = "1"
|
serde = "1"
|
||||||
serde_bytes = "0.11"
|
serde_bytes = "0.11"
|
||||||
|
|
|
@ -10,7 +10,15 @@ crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
napi = {path = "../../crates/napi", default-features = false, features = ["tokio_fs", "napi8", "tokio_rt", "serde-json", "async", "experimental", "latin1"]}
|
napi = { path = "../../crates/napi", default-features = false, features = [
|
||||||
|
"tokio_fs",
|
||||||
|
"napi8",
|
||||||
|
"tokio_rt",
|
||||||
|
"serde-json",
|
||||||
|
"async",
|
||||||
|
"experimental",
|
||||||
|
"latin1",
|
||||||
|
] }
|
||||||
napi-derive = { path = "../../crates/macro", features = ["type-def"] }
|
napi-derive = { path = "../../crates/macro", features = ["type-def"] }
|
||||||
serde = "1"
|
serde = "1"
|
||||||
serde_derive = "1"
|
serde_derive = "1"
|
||||||
|
|
|
@ -14,6 +14,7 @@ Generated by [AVA](https://avajs.dev).
|
||||||
'@rollup/plugin-json',
|
'@rollup/plugin-json',
|
||||||
'@rollup/plugin-node-resolve',
|
'@rollup/plugin-node-resolve',
|
||||||
'@rollup/plugin-replace',
|
'@rollup/plugin-replace',
|
||||||
|
'@taplo/cli',
|
||||||
'@types/debug',
|
'@types/debug',
|
||||||
'@types/lodash-es',
|
'@types/lodash-es',
|
||||||
'@types/node',
|
'@types/node',
|
||||||
|
|
Binary file not shown.
|
@ -10,7 +10,12 @@ crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
napi = {path = "../crates/napi", features = ["tokio_rt", "serde-json", "latin1", "compat-mode"]}
|
napi = { path = "../crates/napi", features = [
|
||||||
|
"tokio_rt",
|
||||||
|
"serde-json",
|
||||||
|
"latin1",
|
||||||
|
"compat-mode",
|
||||||
|
] }
|
||||||
napi-derive = { path = "../crates/macro", features = ["compat-mode"] }
|
napi-derive = { path = "../crates/macro", features = ["compat-mode"] }
|
||||||
serde = "1"
|
serde = "1"
|
||||||
serde_bytes = "0.11"
|
serde_bytes = "0.11"
|
||||||
|
|
10
package.json
10
package.json
|
@ -27,9 +27,10 @@
|
||||||
"build:test:android:armv7": "yarn workspace compat-mode-examples build --target armv7-linux-androideabi && yarn workspace examples build --target armv7-linux-androideabi",
|
"build:test:android:armv7": "yarn workspace compat-mode-examples build --target armv7-linux-androideabi && yarn workspace examples build --target armv7-linux-androideabi",
|
||||||
"build:test:armv7": "yarn workspace compat-mode-examples build-armv7 && yarn workspace examples build-armv7",
|
"build:test:armv7": "yarn workspace compat-mode-examples build-armv7 && yarn workspace examples build-armv7",
|
||||||
"bundle": "rollup -c rollup.config.js",
|
"bundle": "rollup -c rollup.config.js",
|
||||||
"format": "run-p format:prettier format:rs",
|
"format": "run-p format:prettier format:rs format:toml",
|
||||||
"format:prettier": "prettier . -w",
|
"format:prettier": "prettier . -w",
|
||||||
"format:rs": "cargo fmt",
|
"format:rs": "cargo fmt",
|
||||||
|
"format:toml": "taplo format",
|
||||||
"lint": "eslint -c .eslintrc.yml .",
|
"lint": "eslint -c .eslintrc.yml .",
|
||||||
"prepublishOnly": "npm run build && pinst --disable",
|
"prepublishOnly": "npm run build && pinst --disable",
|
||||||
"test": "ava",
|
"test": "ava",
|
||||||
|
@ -54,6 +55,12 @@
|
||||||
],
|
],
|
||||||
"*.@(js||ts|json|md|yml|yaml)": [
|
"*.@(js||ts|json|md|yml|yaml)": [
|
||||||
"prettier --write"
|
"prettier --write"
|
||||||
|
],
|
||||||
|
"*.toml": [
|
||||||
|
"taplo format"
|
||||||
|
],
|
||||||
|
"*.rs": [
|
||||||
|
"cargo fmt"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
|
@ -67,6 +74,7 @@
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.1.3",
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
||||||
"@rollup/plugin-replace": "^3.0.1",
|
"@rollup/plugin-replace": "^3.0.1",
|
||||||
|
"@taplo/cli": "^0.3.2",
|
||||||
"@types/debug": "^4.1.7",
|
"@types/debug": "^4.1.7",
|
||||||
"@types/lodash-es": "^4.17.5",
|
"@types/lodash-es": "^4.17.5",
|
||||||
"@types/node": "^17.0.10",
|
"@types/node": "^17.0.10",
|
||||||
|
|
15
yarn.lock
15
yarn.lock
|
@ -1348,6 +1348,18 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@taplo/cli@npm:^0.3.2":
|
||||||
|
version: 0.3.2
|
||||||
|
resolution: "@taplo/cli@npm:0.3.2"
|
||||||
|
dependencies:
|
||||||
|
fast-glob: ^3.2.4
|
||||||
|
node-fetch: ^2.6.1
|
||||||
|
bin:
|
||||||
|
taplo: dist/cli.js
|
||||||
|
checksum: aa289d561b767ee3730ee431dec8a55bf2b2da5bc8e837156ca8cf39a165ae0e2edf16f669e5a40da2b5c8b67ceea5bb80cd2e91803659b09af707505741992c
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@tootallnate/once@npm:1":
|
"@tootallnate/once@npm:1":
|
||||||
version: 1.1.2
|
version: 1.1.2
|
||||||
resolution: "@tootallnate/once@npm:1.1.2"
|
resolution: "@tootallnate/once@npm:1.1.2"
|
||||||
|
@ -3956,7 +3968,7 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"fast-glob@npm:^3.2.7, fast-glob@npm:^3.2.9":
|
"fast-glob@npm:^3.2.4, fast-glob@npm:^3.2.7, fast-glob@npm:^3.2.9":
|
||||||
version: 3.2.11
|
version: 3.2.11
|
||||||
resolution: "fast-glob@npm:3.2.11"
|
resolution: "fast-glob@npm:3.2.11"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -6156,6 +6168,7 @@ __metadata:
|
||||||
"@rollup/plugin-json": ^4.1.0
|
"@rollup/plugin-json": ^4.1.0
|
||||||
"@rollup/plugin-node-resolve": ^13.1.3
|
"@rollup/plugin-node-resolve": ^13.1.3
|
||||||
"@rollup/plugin-replace": ^3.0.1
|
"@rollup/plugin-replace": ^3.0.1
|
||||||
|
"@taplo/cli": ^0.3.2
|
||||||
"@types/debug": ^4.1.7
|
"@types/debug": ^4.1.7
|
||||||
"@types/lodash-es": ^4.17.5
|
"@types/lodash-es": ^4.17.5
|
||||||
"@types/node": ^17.0.10
|
"@types/node": ^17.0.10
|
||||||
|
|
Loading…
Reference in a new issue