Update readme

This commit is contained in:
Felix Krull 2018-10-18 22:02:43 +02:00 committed by Colin Walters
parent 30517deaea
commit bc2d9621e2
1 changed files with 9 additions and 8 deletions

View File

@ -62,18 +62,19 @@ $ make update-gir-files
### Documentation ### Documentation
The libostree API documentation is not included in the code by default because The libostree API documentation is not included in the code by default because
of its LGPL license. This means normal `cargo doc` runs don't include API docs of its LGPL license. This means normal `cargo doc` runs don't include API docs
for the generated code. Build the crate with the `lgpl-docs` feature to merge for the generated code. Run the `merge-lgpl-docs` Makefile target to include
the API docs into the code: the API docs in the source so they can be consumed by `cargo doc`:
```ShellSession ```ShellSession
$ cd libostree/ $ make merge-lgpl-docs
$ cargo doc --features "dox lgpl-docs"
``` ```
(The `dox` feature enables all functions etc. regardless of version.) Keep in Keep in mind that if you build the crate with the API docs included, it is
mind that if you build the crate with the `lgpl-docs` feature, it is effectively effectively LGPL-licensed and you need to comply with the LGPL requirements
LGPL-licensed and you need to comply with the LGPL requirements (specifically, (specifically, allowing users of your end product to swap out the LGPL'd
allowing users of your end product to swap out the LGPL'd parts). parts).
CI includes the LGPL docs in the documentation build.
### Releases ### Releases
Releases can be done using the publish_* jobs in the pipeline. There's no Releases can be done using the publish_* jobs in the pipeline. There's no