| build: propagate cJSON include to consumers, add scaffold script
- Propagate cJSON source dir as PUBLIC target include so consuming
projects (e.g. scaffold-generated) can find cJSON.h when including
csilk.h
- Guard tests/examples behind CMAKE_SOURCE_DIR == CMAKE_CURRENT_SOURCE_DIR
so they don't build when csilk is a subdirectory
- Fix CMAKE_SOURCE_DIR -> CMAKE_CURRENT_SOURCE_DIR for config_multi.yaml
reference
- Add interactive scaffold script scripts/csilkskel that generates a
complete csilk project with configurable DB, auth, permissions,
middleware, and API style
- Add cmake/csilkskel.cmake helper module for reusing pre-fetched
| 3 天前 |
| build: auto-format source files on cmake build via ALL target
- Add cmake/format.cmake script that only rewrites files needing formatting
- Change format target to 'ALL' so it runs automatically on every 'make'
- Preserve mtime of already-formatted files to avoid unnecessary rebuilds
| 1 天前 |
| feat: HTTP/2 session scaffolding and client write refactor
- Extract csilk_client_write from _csilk_send_data for direct client access
- Add _csilk_ctx_init to properly initialise context with server pointers
- Add h2_streams linked list to client struct for multiplexed streams
- Add stream_id and next_stream to context for HTTP/2 stream tracking
- Create h2.c/h2.h with nghttp2 session init and callback stubs
- Register h2.c in cmake/sources.cmake
| 6 小时前 |
| test: add on_ws_send callback and improve ws_room tests
- Add csilk_set_on_ws_send to intercept outgoing WebSocket frames for testing
- Invoke on_ws_send callback in csilk_ws_send before sending
- Register test_ws_room in cmake/tests.cmake
- Improve test_ws_room broadcast stability with bounded retry loop
- Add debug logging in ws_room for MQ subscription visibility
| 7 小时前 |