This a quick guide to understand and edit xbase source code.
Here's an overview of the project architecture to help you contribute.
xbase source code
- Server Startup and OS Signal Handler Logic
main.rs
- State Initialization and Access Logic
state.rs
- Server/Client Logic (server/*)
- Project Runtime
runtime/*
- Project Running
runner/*
- Project Watching
watcher/*
- Project Support
project/*
- General Purpose Types
types.rs
- Serializable/Deserializable Errors
error.rs
sourcekit-helper crate
Build server implementing BSP protocol required because sourcekit-lsp can't define compile arguments required to jump to definition and symbol definition.
git clone https://github.com/xbase-lab/xbase
Do all the setup required to watch and develop
make install_debug
Watch all the products and trigger recompile when the source code changes.
make watch