sing-box/docs/configuration/rule-set/source-format.md

45 lines
775 B
Markdown
Raw Normal View History

2024-07-17 09:57:35 +00:00
---
status: new
2024-07-17 09:57:35 +00:00
---
2024-11-11 11:33:40 +00:00
!!! quote "Changes in sing-box 1.11.0"
:material-plus: version `3`
2024-07-17 09:57:35 +00:00
!!! quote "Changes in sing-box 1.10.0"
:material-plus: version `2`
2023-12-01 05:24:18 +00:00
!!! question "Since sing-box 1.8.0"
### Structure
```json
{
2024-11-11 11:33:40 +00:00
"version": 3,
2023-12-01 05:24:18 +00:00
"rules": []
}
```
### Compile
Use `sing-box rule-set compile [--output <file-name>.srs] <file-name>.json` to compile source to binary rule-set.
### Fields
#### version
==Required==
2024-11-11 11:33:40 +00:00
Version of rule-set.
2024-07-17 09:57:35 +00:00
2024-11-11 11:33:40 +00:00
* 1: sing-box 1.8.0: Initial rule-set version.
* 2: sing-box 1.10.0: Optimized memory usages of `domain_suffix` rules in binary rule-sets.
* 3: sing-box 1.11.0: Added `network_type`, `network_is_expensive` and `network_is_constrainted` rule items.
2023-12-01 05:24:18 +00:00
#### rules
==Required==
2024-11-11 11:33:40 +00:00
List of [Headless Rule](../headless-rule/).