fix: cargo metadata with large project (#1117)
Set `maxBuffer` to 10mb, cargo metadata may output data more than 1mb(the nodejs default value). Refs: - https://github.com/napi-rs/napi-rs/issues/1116
This commit is contained in:
parent
dc87c46322
commit
6bef28a59b
1 changed files with 1 additions and 0 deletions
|
@ -213,6 +213,7 @@ export class BuildCommand extends Command {
|
||||||
const cargoMetadata = JSON.parse(
|
const cargoMetadata = JSON.parse(
|
||||||
execSync('cargo metadata --format-version 1', {
|
execSync('cargo metadata --format-version 1', {
|
||||||
stdio: 'pipe',
|
stdio: 'pipe',
|
||||||
|
maxBuffer: 1024 * 1024 * 10,
|
||||||
}).toString('utf8'),
|
}).toString('utf8'),
|
||||||
)
|
)
|
||||||
const packages = cargoMetadata.packages
|
const packages = cargoMetadata.packages
|
||||||
|
|
Loading…
Reference in a new issue