Skip to content

Make gcore a std library, remove std, alloc and more unused features #2724

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

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

Firestar99
Copy link
Collaborator

@Firestar99 Firestar99 commented Jun 16, 2025

Requires #2729

This PR contains the code changes, for bulk renames see #2735

@@ -144,7 +141,7 @@ fn migrate_type_descriptor_names<'de, D: serde::Deserializer<'de>>(deserializer:
let name = String::deserialize(deserializer)?;
let name = match name.as_str() {
"f32" => "f64".to_string(),
"graphene_core::transform::Footprint" => "core::option::Option<alloc::sync::Arc<graphene_core::context::OwnedContextImpl>>".to_string(),
"graphene_core::transform::Footprint" => "std::option::Option<std::sync::Arc<graphene_core::context::OwnedContextImpl>>".to_string(),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm unsure whether this will cause breakage or not. While core would still compile, alloc shouldn't since I removed the external crate alloc;. Even if this particular migration code may be fine to be changed, it could indicate trouble with other documents in the wild. At least the demo artworks are unaffected.

Copy link
Member

Choose a reason for hiding this comment

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

This only affects the debug output, a breakage here is fine.

@Firestar99 Firestar99 force-pushed the gcore_feature_removal branch from a6b9c4d to a916e5d Compare June 18, 2025 13:21
@Firestar99 Firestar99 changed the title Remove unused features from gcore Make gcore an std library, remove unused features Jun 18, 2025
@Firestar99 Firestar99 changed the title Make gcore an std library, remove unused features Make gcore a std library, remove std, alloc and more unused features Jun 18, 2025
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