dart-sdk/pkg
Aske Simon Christensen 6faa5f3bd0 [dart2wasm] Initial commit for the Dart-to-WasmGC compiler.
This is work in progress. Several language features are still
unimplemented or only partially implemented.

Instructions for running the compiler and its output can be found in
pkg/dart2wasm/dart2wasm.md. These procedures are preliminary and
expected to change.

The best version of d8 to use for this version of dart2wasm is 10.0.40,
as explained here: https://dart-review.googlesource.com/c/sdk/+/232097

This commit also adds a dart2wasm-hostasserts-linux-x64-d8 testing
configuration to run the compiler over the test suite.

The history of the prototype that this is based on can be seen here:

https://github.com/askeksa-google/sdk/tree/wasm_prototype

Issue: https://github.com/dart-lang/sdk/issues/32894

Change-Id: I910b6ff239ef9c5f66863e4ca97b39b8202cce85
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175728
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2022-02-16 11:11:14 +00:00
..
_fe_analyzer_shared [cfe] Add initial support for applying the phase 1 macro results 2022-02-16 09:19:49 +00:00
_js_interop_checks Replace Uri.scheme == with Uri.isScheme 2022-02-08 21:38:57 +00:00
analysis_server New optional enum input, CompletionCaseMatchingMode, in DAS getSuggestions2 request. 2022-02-15 00:15:00 +00:00
analysis_server_client New optional enum input, CompletionCaseMatchingMode, in DAS getSuggestions2 request. 2022-02-15 00:15:00 +00:00
analyzer [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
analyzer_cli [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
analyzer_plugin [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
analyzer_utilities [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
async_helper [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
build_integration [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
compiler [dart2js] Cleanup some TODOs in dart2js' frontend api. 2022-02-15 17:41:39 +00:00
dart2js_info [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
dart2js_runtime_metrics [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
dart2js_tools [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
dart2native [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
dart2wasm [dart2wasm] Initial commit for the Dart-to-WasmGC compiler. 2022-02-16 11:11:14 +00:00
dart_internal [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
dartdev [dartdev] tweak the pubspec file generation for 'dart create' 2022-02-14 21:23:59 +00:00
dds [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
dds_service_extensions [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
dev_compiler [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
diagnostic [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
expect [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
front_end [cfe] Add initial support for applying the phase 1 macro results 2022-02-16 09:19:49 +00:00
frontend_server [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
js [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
js_ast [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
js_runtime [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
kernel [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
language_versioning_2.7_test [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
meta [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
modular_test [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
native_stack_traces [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
nnbd_migration Migration: respect built_value @nullable annotations even when there is no codegen 2022-02-15 00:32:50 +00:00
scrape [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
smith [dart2wasm] Initial commit for the Dart-to-WasmGC compiler. 2022-02-16 11:11:14 +00:00
sourcemap_testing [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
status_file [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
telemetry [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
test_runner [dart2wasm] Initial commit for the Dart-to-WasmGC compiler. 2022-02-16 11:11:14 +00:00
testing [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
vm [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
vm_service [ Service ] Added service tests for enhanced enums 2022-02-15 00:36:10 +00:00
vm_snapshot_analysis [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
wasm_builder [dart2wasm] Initial commit for the Dart-to-WasmGC compiler. 2022-02-16 11:11:14 +00:00
.gitignore Ignore .dart_tool and .packages in pkg dir 2021-09-24 15:22:08 +00:00
BUILD.gn
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
pkg.status [test] Inform status files about the new simulated architectures. 2022-02-03 20:32:16 +00:00
README.md

Package validation

The packages in pkg/ are automatically validated on the LUCI CI bots. The validation is largely done by the tools/package_deps package; it can be tested locally via:

dart tools/package_deps/bin/package_deps.dart

Packages which are published

There are several packages developed in pkg/ which are published to pub. Validation of these packages is particularly important because the pub tools are not used for these packages during development; we get our dependency versions from the DEPS file. Its very easy for the dependencies specified in a package's pubspec file to get out of date wrt the packages and versions actually used.

In order to better ensure we're publishing correct packages, we validate some properties of the pubspec files on our CI system. These validations include:

  • that the dependencies listed in the pubspec are used in the package
  • that all the packages used by the source are listed in the pubspec
  • that we don't use relative path deps to pkg/ or third_party/ packages

Packages which are not published

For packages in pkg/ which we do not intend to be published, we put the following comment in the pubspec.yaml file:

# This package is not intended for consumption on pub.dev. DO NOT publish.
publish_to: none

These pubspecs are still validated by the package validation tool. The contents are more informational as the pubspecs for these packages are not consumed by the pub tool or ecosystem.

We validate:

  • that the dependencies listed in the pubspec are used in the package
  • that all the packages used by the source are listed in the pubspec
  • that a reference to a pkg/ package is done via a relative path dependency