Debian Codegraph @

README.md

raw
1 # GIR
2
3 `GIR` is a project that helps for generating safe Rust bindings for GObject based libraries. The generated bindings consists of two parts: FFI (the unsafe 1:1 C API calls from Rust) and the high-level, safe Rust API.
4
5 ## How to use
6
7 A work in progress book to help with learning how to use `gir` along with a tutorial are available at <https://gtk-rs.org/gir/book>.
8
9 If you intend to contribute to `gir` or make use of `libgir`, the docs are available at <https://gtk-rs.org/gir/docs/gir> / <https://gtk-rs.org/gir/docs/libgir>.
10
11 ## AI Contribution Policy
12
13 gtk-rs is a project by humans for humans. We prefer contributions that
14 are produced by human creativity, we expect a human to take full
15 responsibility for each contribution, and we will take more joy in
16 reviewing contributions when there's people at the other end of the
17 line to stand by their changes.
18
19 If you use LLM/GenAI tools for your contributions, here are the rules
20 you must follow:
21
22 ### Requirements
23
24 1. Use AI as a tool. Verify behavior, correctness, and compatibility
25 yourself prior to submitting your contribution. Do not ask the
26 maintainers to do this for you.
27 1. Keep changes narrow and limited. Do **NOT** use LLM/GenAI tools to
28 generate broad rewrites, large refactorings, or style changes.
29 1. Do **NOT** submit generated code, documentation, or tests that you
30 don’t understand.
31 1. Do **NOT** fabricate benchmarks, bug reports, test results, code
32 samples, or reproducers.
33 1. Do **NOT** include private code, credentials, tokens, or any other
34 confidential material.
35 1. Respect the licensing and attribution requirements.
36
37 ### Disclosure
38
39 Always disclose the use of LLM/GenAI tools when creating an issue or
40 a merge request. Do not include trailers like “Co-authored-by:” or
41 “Assisted-by:” in commit messages, since they serve as free advertising
42 for AI companies.
43
44 ### Reviews
45
46 1. Describe your changes, and the verification steps.
47 1. Be prepared to explain all the changes yourself.
48 1. Do **NOT** feed the review feedback to an LLM/GenAI tool.
49
50 ### Maintainers expectations
51
52 1. Review LLM/GenAI-assisted contributions more strictly than any other contribution.
53 1. Require reproducibility in fixes and tests.
54 1. Reject changes that appear to be unverified LLM/GenAI output.
55 1. Reject comments and feedback that appear to be LLM/GenAI output.
56
57 > A COMPUTER CAN NEVER BE HELD ACCOUNTABLE.
58 > THEREFORE A COMPUTER MUST NEVER MAKE A MAINTENANCE DECISION.
59