blob: 7446ec229b0eecc48c1d062cc99cb0d8132a5588 [file] [edit]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
{
include: [
"sys/component/realm_builder.shard.cml",
"syslog/client.shard.cml",
],
program: {
runner: "elf",
binary: "bin/dart_wrapper_runner",
args: [ "fuchsia-pkg://fuchsia.com/dart_jit_runner#meta/dart_jit_runner.cm" ],
use_next_vdso: "true",
},
collections: [
{
name: "runners",
environment: "#runner-env",
durability: "transient",
},
],
capabilities: [
{
runner: "dart_jit_runner",
path: "/svc/fuchsia.component.runner.ComponentRunner",
},
],
use: [
{
protocol: "fuchsia.sys2.RealmQuery",
from: "framework",
},
{
protocol: "fuchsia.sys2.LifecycleController",
from: "framework",
},
],
offer: [
{
directory: "config-data",
from: "parent",
to: "#runners",
rights: [ "r*" ],
},
{
protocol: [
"fuchsia.device.NameProvider", // For fdio uname()
"fuchsia.feedback.CrashReporter",
"fuchsia.intl.PropertyProvider", // For dartVM timezone support
"fuchsia.logger.LogSink", // For syslog
"fuchsia.net.name.Lookup", // For fdio sockets
"fuchsia.posix.socket.Provider", // For fdio sockets
"fuchsia.tracing.provider.Registry", // For trace-provider
],
from: "parent",
to: "#runners",
},
],
expose: [
{
runner: "dart_jit_runner",
from: "self",
},
],
environments: [
{
name: "runner-env",
extends: "realm",
},
],
}