oscartbeaumont / rspc

A framework for building typesafe web backends in Rust
https://rspc.dev
MIT License
1.11k stars 51 forks source link

Conditionally compile subscription Rust code #145

Closed oscartbeaumont closed 12 months ago

oscartbeaumont commented 1 year ago

Then make it so you can't enable the feature when the Lambda runtimes are enabled.

Fail to startup server if the httpz server reports it doesn't support subscriptions -> We may not be able to be perfectly typesafe but we can try.

oscartbeaumont commented 12 months ago

I have changed my mind and don't think it's worth it. It adds way more complexity for a limited use case.