zig-play icon indicating copy to clipboard operation
zig-play copied to clipboard

API support for using Zig Playground

Open i0bs opened this issue 2 years ago • 1 comments

It would be really nice to have API support for zig-play, allowing developers to quickly run and test code without having to re-build and test. I've used this website countless times when I've wanted to test some code without having to create a new package just to test and see if something works or not.

@SuperAuguste Wanted to ping you here - I think the concept of a playground is absolutely awesome, and it'd be great to see something potentially similar to this in zls, simply with debugging.

i0bs avatar Mar 28 '23 04:03 i0bs

It already is an API, right? As an example, let's say I have my source in source.zig.

curl -v https://zig-play.dev/server/run -d @source.zig

That should work just fine. Same for /server/fmt.

gsquire avatar Mar 30 '23 01:03 gsquire