• Maciej Hirsz's avatar
    Resource Limiting (#500) · 518a6155
    Maciej Hirsz authored
    
    
    * Squash post merge
    
    * RAII claims and some comments
    
    * Adding resources to Methods
    
    * Use arrays for claiming all resources at once
    
    * Register resources on ws-server
    
    * Return MethodResourcesBuilder from register_method
    
    * Return MethodResourcesBuilder from register_async_method
    
    * fmt and comments
    
    * Add `verify_and_insert` to get rid of `or_insert` in order to get mut ref to value
    
    * Resources initialization
    
    * No need for ResourceBuilder
    
    * Comment all the things
    
    * Handle errors on ws-server `start` method
    
    * Passing ResourceGuard to method execution
    
    * Start ws-server in background, simplify all the tests!
    
    * Claiming resources on runtime
    
    * Do checked math on resource claiming
    
    * Clearer error path for resources at limit
    
    * Resource limiting tests WIP
    
    * Unbox async futures
    
    * fmt
    
    * Cleaner proc macro
    
    * Fix lifetime issues with ResourceGuard with internal Arc
    
    * Remove unnecessary lifetime generic
    
    * Working tests
    
    * Use turbofish in tests
    
    * fmt
    
    * Fixed (?) benches
    
    * Apply suggestions from code review
    
    Co-authored-by: default avatarDavid <[email protected]>
    
    * Tweak more grumbles
    
    * Adding a test for resource limiting with proc macros (WIP)
    
    * Reworking attribute macros for resource limiting (#507)
    
    * Squashed macros WIP
    
    * bae-less macros!
    
    * Make things simpler and more readable
    
    * Some comments and DRY aliases parsing
    
    * Naming things is hard
    
    * Respan is no longer needed
    
    * Simpler Arguments
    
    * Remove stale code
    
    * Apply suggestions from code review
    
    Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
    
    * syn-up all the things, handle resources on methods
    
    Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
    
    * Resource limiting on the http server
    
    * Test two resources at once
    
    * Test the HTTP server for resource limiting
    
    * Apply suggestions from code review
    
    Co-authored-by: default avatarDavid <[email protected]>
    Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
    
    * Comment tweaks
    
    * More explicit error type for `AttributeMeta::retain`
    
    * Remove generic from ResourceTable; derive Default on ws Builder
    
    * Make the macros shorter
    
    Co-authored-by: default avatarDavid <[email protected]>
    Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
    518a6155