-
Notifications
You must be signed in to change notification settings - Fork 2
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
New crate layout is confusing for previous users #20
Comments
Hey! When I have more time I'll go back to this and improve the docs. For now I'll explain my plan and include a sketch migration guide (with rationale) in case it's of interest. See also: CHANGELOG.md The plan
v0.3 Migration GuideBreaking changesThere are basically 2 breaking changes:
Before: use vitasdk_sys::{
psp2::{
display::sceDisplaySetFrameBuf,
kernel::sysmem::{
sceKernelAllocMemBlock, sceKernelFreeMemBlock, sceKernelGetMemBlockBase,
},
},
psp2common::{
display::{SceDisplayFrameBuf, SceDisplaySetBufSync::SCE_DISPLAY_SETBUF_NEXTFRAME},
kernel::sysmem::SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW,
types::SceUID,
},
}; After: use vitasdk_sys::{
sceDisplaySetFrameBuf, sceKernelAllocMemBlock, sceKernelFreeMemBlock, sceKernelGetMemBlockBase,
SceDisplayFrameBuf, SceUID, SCE_DISPLAY_SETBUF_NEXTFRAME,
SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW,
};
Using the example above, by searching the docs for sceDisplaySetFrameBuf we find: Considering all imports on the example above (1.), Cargo.toml would have: [dependencies.vitasdk-sys]
version = "0.3.2"
features = [
"SceSysmem_stub",
"SceDisplay_stub",
] Rationale
|
There probably should be a slightly more thorough migration guide to the new crate design, or more and more "modernized" examples of its use, especially in terms of features.
The text was updated successfully, but these errors were encountered: