@parcel/rust 2.12.1-canary.3284 → 2.12.1-canary.3285

Sign up to get free protection for your applications and to get access to all the features.
package/index.d.ts CHANGED
@@ -15,6 +15,31 @@ export function findNodeModule(module: string, from: string): string | null
15
15
  export function hashString(s: string): string
16
16
  export function hashBuffer(buf: Buffer): string
17
17
  export function optimizeImage(kind: string, buf: Buffer): Buffer
18
+ /**
19
+ * JavaScript provided options to configure the `tracing_subscriber` rust logs into a file or the
20
+ * console.
21
+ */
22
+ export interface ParcelTracingOptions {
23
+ /** Enable tracing */
24
+ enabled: boolean
25
+ /**
26
+ * If set to some, will trace to a file with the given options, otherwise the console will be
27
+ * used.
28
+ */
29
+ outputFileOptions?: ParcelTracingOutputFileOptions
30
+ }
31
+ /**
32
+ * Output file configuration.
33
+ * Tracing log files will be rotated hourly on the provided directory.
34
+ */
35
+ export interface ParcelTracingOutputFileOptions {
36
+ /** The directory where the log files will be written. */
37
+ directory: string
38
+ /** A prefix for the log file names. */
39
+ prefix: string
40
+ /** The maximum number of rotated files to keep. */
41
+ maxFiles: number
42
+ }
18
43
  export interface ParcelNapiBuildOptions {
19
44
 
20
45
  }
@@ -26,6 +51,7 @@ export interface ParcelNapiOptions {
26
51
  nodeWorkers?: number
27
52
  fs?: object
28
53
  rpc: (...args: any[]) => any
54
+ tracingOptions?: ParcelTracingOptions
29
55
  }
30
56
  export function workerCallback(callback: (...args: any[]) => any): void
31
57
  export interface JsFileSystemOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/rust",
3
- "version": "2.12.1-canary.3284+83fbcdce6",
3
+ "version": "2.12.1-canary.3285+d1afc99e8",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -40,5 +40,5 @@
40
40
  "wasm:build": "cargo build -p parcel-node-bindings --target wasm32-unknown-unknown && cp ../../../target/wasm32-unknown-unknown/debug/parcel_node_bindings.wasm .",
41
41
  "wasm:build-release": "CARGO_PROFILE_RELEASE_LTO=true cargo build -p parcel-node-bindings --target wasm32-unknown-unknown --release && wasm-opt --strip-debug -O ../../../target/wasm32-unknown-unknown/release/parcel_node_bindings.wasm -o parcel_node_bindings.wasm"
42
42
  },
43
- "gitHead": "83fbcdce651a3a7a4a1dba2fbcced6e24678c97b"
43
+ "gitHead": "d1afc99e8fadee484a24bb408667a86862c484c3"
44
44
  }