486c / rosu-memory

Lightweight, cross-platform memory reader for osu! but in rust
21 stars 7 forks source link

feat: http endpoint #36

Closed 486c closed 7 months ago

486c commented 7 months ago

Basic fundament for data that should be transffered through HTTP endpoints (e.g. background image).

cons of this pr:

  1. Additional 1MB to binary size
  2. Mutex'es & Arc's
  3. Keeping application context

Probably we should consider SSE in near future as alternative to this solution.

486c commented 7 months ago

Apparently just found out that tide is not in active development which is sad. Also tide-websockets & tide contains some outdated dependencies.

I think there few ways we can go:

  1. Patch tide & tide-websockets to update some packages
  2. Try out prototyping SSE solution
  3. Try implementing same logic that i did with tide but using hyper (which gonna be one huge headache)

i hate async rust sometimes :cry: