are there any Rust crates for SDL-style 2D drawing but that don't require me to use the SDL library?

buhhh i should probably try to figure out how to use Piston again sometime i guess... that just seems like overkill for making a window and drawing some shapes to it and grabbing some basic input

i mean i *could* just use sdl, but then i'd have to ship the sdl dll with my program n stuff

i may as well look up alternatives within the rust ecosystem first to see if there's anything good

Follow

@Efi i like rust because it's got static type safety

it's also got static memory safety - if you have a pointer to a value, the compiler guarantees it's valid so you're never gonna get a segfault from dereferencing a NULL

it also has a package/build manager that's really nice, and it has lots of nice modern language features (like option and result types and first-class functions)

but it's still fast native code, like C

@Efi the static type safety has some other benefits too - it makes concurrency really really nice for instance

@Efi :U

all i can really say is if you're curious give it a shot. maybe you won't like it, or you will. that's ok

@Efi hmmm. *easier* than a mature engine with a nice gui, maybe not?

@Efi lucky for you rust *has* nice high level features and functional code (it's primarily an imperative language but supports some FP ideas)

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!