When adding the protocol file in version 7.0.6, an error occurred and there was no output

BTW the --rust option is obsolete, since now parsers are expected to be written in Rust. Hence recent versions of that script do not even have this option:

❯ ./scripts/setup-app-layer.py -h
usage: setup-app-layer.py [-h] [--logger] [--parser] [--detect] proto [buffer]

and I guess it is assumed to be always “enabled”.