github.com/sagernet/sing-box@v1.9.0-rc.20/docs/configuration/rule-set/source-format.md (about) 1 # Source Format 2 3 !!! question "Since sing-box 1.8.0" 4 5 ### Structure 6 7 ```json 8 { 9 "version": 1, 10 "rules": [] 11 } 12 ``` 13 14 ### Compile 15 16 Use `sing-box rule-set compile [--output <file-name>.srs] <file-name>.json` to compile source to binary rule-set. 17 18 ### Fields 19 20 #### version 21 22 ==Required== 23 24 Version of Rule Set, must be `1`. 25 26 #### rules 27 28 ==Required== 29 30 List of [Headless Rule](./headless-rule.md/).