Skip to content

Adding Rand crate (or possibly other no std lib ones) #3

Answered by ricky26
reinvantveer asked this question in Q&A
Discussion options

You must be logged in to vote

True enough, there's no libc on the Mega Drive. Judging by your Stack Overflow post, you're running it without default features though, which shouldn't depend on it. I'm happy to take a look if you've got it spitting out some logs!

The cargo megadrive command is purely for building the final Mega Drive image, it largely just does a cargo build --release and then composes the output into the MD image format. Libraries built as part of that (or just building libraries on their own) can just use regular cargo. (I'm guessing that you've added this as a dependency to your game though!)

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
12 replies
@reinvantveer
Comment options

@reinvantveer
Comment options

@reinvantveer
Comment options

@ricky26
Comment options

@reinvantveer
Comment options

Answer selected by reinvantveer
Comment options

You must be logged in to vote
3 replies
@parasyte
Comment options

@reinvantveer
Comment options

@reinvantveer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants