-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
factors: Pare down spin-core and spin-app #2661
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gets my vote for most satisfying PR of the year.
crates/core/src/host_component.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The HostComponent
is dead! Long live the Factor
!
let locked: LockedApp = serde_json::from_value(json!({ | ||
"spin_lock_version": 1, | ||
"triggers": [], | ||
"components": [{ | ||
"id": "test-component", | ||
"source": { | ||
"content_type": "application/wasm", | ||
"content": {}, | ||
}, | ||
}] | ||
}))?; | ||
let app = App::new("test-app", locked); | ||
let configured_app = factors.configure_app(app, ())?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
21325c3
to
0df8436
Compare
These features are moving as part of the migration to factors. Signed-off-by: Lann Martin <lann.martin@fermyon.com>
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
0df8436
to
7708b03
Compare
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
7708b03
to
e2334e7
Compare
These features are moving as part of the migration to factors.
Notably, the spin-core integration test now shows roughly how factors will be integrated with core in spin-trigger.