Skip to content
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

Merged
merged 3 commits into from
Jul 19, 2024

Conversation

lann
Copy link
Collaborator

@lann lann commented Jul 18, 2024

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.

Copy link
Collaborator

@rylev rylev left a 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/factors/src/lib.rs Outdated Show resolved Hide resolved
crates/factors/src/prepare.rs Show resolved Hide resolved
Copy link
Collaborator

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!

Comment on lines +130 to +142
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, ())?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

lann added 2 commits July 19, 2024 09:40
These features are moving as part of the migration to factors.

Signed-off-by: Lann Martin <[email protected]>
Signed-off-by: Lann Martin <[email protected]>
@lann lann marked this pull request as ready for review July 19, 2024 13:41
Signed-off-by: Lann Martin <[email protected]>
@lann lann merged commit 2565311 into fermyon:factors Jul 19, 2024
1 check passed
@lann lann deleted the factors-die-code-die branch July 19, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants