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

Follow

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

to clarify the specific thing i want to do: i don't want to make a game presently, i just want to make a 2d gui for my music program

it's kinda looking like piston is the way to go. buhhh

@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)

@lizardsquid it's probably not as annoying as i'm making it sound. i just don't really know how to use piston

@typhlosion I couldn't get it working on my system because of weird dependency problems ::(

@lizardsquid oh no! unfortunately weird dependency problems are All The Rage in the rust ecosystem at the moment. i've had a few times where i wanted to use some library or check out someone's project but something along the way only worked in rust unstable for some reason or another

@lizardsquid the upshot is that the rust ecosystem tumbles along fast enough that if you checked back now it might be working

@typhlosion yeah, it's my main barrier to entry - especially because I'm using NixOS, which does it's own weird dependency stuff

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!