Add new extension crate (#20089)

This PR adds a new `extension` crate, containing some contents extracted
from the `extension_host`.

Right now it contains just the `ExtensionManifest` and
`ExtensionBuilder`, although we may move more of the extension interface
into here.

The introduction of the `extension` crate allows us to depend on it in
the `extension_cli`, thereby eliminating the need for the `no-webrtc`
feature on a number of crates.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-11-01 13:20:30 -04:00 committed by GitHub
parent ea44c510a3
commit 770886880f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 122 additions and 68 deletions

View file

@ -16,7 +16,7 @@ path = "src/main.rs"
anyhow.workspace = true
clap = { workspace = true, features = ["derive"] }
env_logger.workspace = true
extension_host = { workspace = true, features = ["no-webrtc"] }
extension.workspace = true
fs.workspace = true
language.workspace = true
log.workspace = true

View file

@ -9,7 +9,7 @@ use std::{
use ::fs::{copy_recursive, CopyOptions, Fs, RealFs};
use anyhow::{anyhow, bail, Context, Result};
use clap::Parser;
use extension_host::{
use extension::{
extension_builder::{CompileExtensionOptions, ExtensionBuilder},
ExtensionManifest,
};