mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
feat: Codegen feature flags (#28920)
This commit adds "deno_features" crate that contains definitions of all unstable features in Deno. Based on these definitions, both Rust and JS code is generated ensuring that the two are always in sync. In addition some of flag handling was rewritten to use the generated definitions, instead of hand rolling these flag definitions. --------- Co-authored-by: snek <snek@deno.com>
This commit is contained in:
parent
4924731ac3
commit
189ccffdb9
19 changed files with 701 additions and 284 deletions
26
runtime/features/gen.js
Normal file
26
runtime/features/gen.js
Normal file
|
@ -0,0 +1,26 @@
|
|||
// Copyright 2018-2025 the Deno authors. MIT license.
|
||||
|
||||
/**
|
||||
* Don't modify this file manually.
|
||||
*
|
||||
* This file is auto-generated by the build script, modify `data.rs` instead.
|
||||
*/
|
||||
|
||||
export const unstableIds = {
|
||||
broadcastChannel: 1,
|
||||
cron: 3,
|
||||
ffi: 5,
|
||||
fs: 6,
|
||||
http: 7,
|
||||
kv: 8,
|
||||
net: 11,
|
||||
noLegacyAbort: 12,
|
||||
nodeGlobals: 13,
|
||||
otel: 15,
|
||||
process: 16,
|
||||
temporal: 18,
|
||||
unsafeProto: 19,
|
||||
vsock: 20,
|
||||
webgpu: 21,
|
||||
workerOptions: 22,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue