Debian Codegraph @

devel-docs/index.rst

raw
1 Development guide for librsvg
2 =============================
3
4 .. toctree::
5 :caption: For Distributors and End Users
6 :maxdepth: 1
7 :hidden:
8
9 supported_versions
10 product
11 features
12 roadmap
13 compiling
14 security
15 bugs
16
17 .. toctree::
18 :caption: Getting Started as a Contributor
19 :maxdepth: 1
20 :hidden:
21
22 devel_environment
23 contributing
24 learning
25
26 .. toctree::
27 :caption: Understand the Code
28 :maxdepth: 1
29 :hidden:
30
31 Documentation of the library's internals <https://gnome.pages.gitlab.gnome.org/librsvg/internals/rsvg/index.html>
32 architecture
33 adding_a_property
34 memory_leaks
35
36 .. toctree::
37 :caption: Design Documents
38 :maxdepth: 1
39 :hidden:
40
41 text_layout
42 render_tree
43 api_observability
44 performance_tracking
45 viewport
46 custom_properties
47 building_deps_in_ci
48 xml_parser
49
50 .. toctree::
51 :caption: Info for Maintainers
52 :maxdepth: 1
53 :hidden:
54
55 releasing
56 ci
57 oss_fuzz
58
59 .. toctree::
60 :caption: Tools
61 :maxdepth: 1
62 :hidden:
63
64 rsvg_bench
65
66 Welcome to the developer's guide for librsvg. This is for people who
67 want to work on the development of librsvg itself, not for users of
68 the library or the ``rsvg-convert`` program.
69
70 If you want to modify this document, please see :source:`its source code
71 <devel-docs>` and :doc:`this guide <devel_docs_mod_guide>`.
72
73 Introduction
74 ------------
75
76 Librsvg is a project with a long history; it started 2001 as a way to
77 use the then-new Scalable Vector Graphics format (SVG) for GNOME's
78 icons and other graphical assets on the desktop. Since then, it has
79 evolved into a few different tools.
80
81 - :doc:`supported_versions` - Versions where you can expect support and bugfixes.
82 - :doc:`product` - What comes out of this repository once it is compiled?
83 - :doc:`features` - Supported elements, attributes, and properties.
84 - :doc:`roadmap` - Ever-changing list of priorities for the
85 maintainers; check this often!
86 - :doc:`compiling` - Cross compilation, debug/release builds, special options.
87 - :doc:`security` - Reporting security bugs, releases with security
88 fixes, security of dependencies.
89 - :doc:`bugs`
90
91 Getting started
92 ---------------
93
94 - :doc:`devel_environment`
95 - :doc:`contributing`
96 - :doc:`learning`
97
98 Understand the code
99 -------------------
100
101 .. Test suite - move tests/readme here?
102
103 - `Documentation of the library's internals
104 <https://gnome.pages.gitlab.gnome.org/librsvg/internals/rsvg/index.html>`_
105 - :doc:`architecture`
106 - :doc:`adding_a_property`
107 - :doc:`memory_leaks`
108
109 Design documents
110 ----------------
111
112 Before embarking on big changes to librsvg, please write a little
113 design document modeled on the following ones, and submit a merge
114 request. We can then discuss it before coding. This way we will have
115 a sort of big-picture development history apart from commit messages.
116
117 - :doc:`text_layout`
118 - :doc:`render_tree`
119 - :doc:`api_observability`
120 - :doc:`performance_tracking`
121 - :doc:`viewport`
122 - :doc:`custom_properties`
123 - :doc:`building_deps_in_ci`
124
125 See https://rustc-dev-guide.rust-lang.org/walkthrough.html, section
126 Overview, to formalize the RFC process for features vs. drive-by
127 contributions.
128
129 Information for maintainers
130 ---------------------------
131
132 - :doc:`releasing`
133 - :doc:`ci`
134 - :doc:`oss_fuzz`
135
136 ..
137 - Overview of the maintainer's workflow.
138 - Marge-bot.
139 - Documentation on the CI.
140 - Documentation on the OSS-Fuzz integration and its maintenance.
141
142 Tools
143 -----
144
145 - :doc:`rsvg_bench`
146
147 References
148 ----------
149
150 - `SVG2 specification <https://www.w3.org/TR/SVG2/>`_. This is the current Candidate Recommendation and it should
151 be your main reference...
152
153 - ... except for things which are later clarified in the `SVG2 Editor's Draft <https://svgwg.org/svg2-draft/>`_.
154
155 - `Filter Effects Module Level 1 <https://www.w3.org/TR/filter-effects/>`_.
156
157 - `References listed in the SVG2 spec
158 <https://www.w3.org/TR/SVG2/refs.html>`_ - if you need to consult
159 the CSS specifications.
160
161 - `SVG1.1 specification <https://www.w3.org/TR/SVG11/>`_. Use this mostly for historical reference.
162
163 - `SVG Working Group repository
164 <https://github.com/w3c/svgwg/tree/master>`_. The github issues are
165 especially interesting. Use this to ask for clarifications of the
166 spec.
167
168 - `SVG Working Group page <https://svgwg.org/>`_.
169
170 - Presentation at GUADEC 2017, `Replacing C library code with Rust: What I learned with
171 librsvg <https://viruta.org/docs/fmq-porting-c-to-rust.pdf>`_. It gives
172 a little history of librsvg, and how/why it was being ported to Rust
173 from C.
174
175 - Presentation at GUADEC 2018, `Patterns of refactoring C to Rust: the case of
176 librsvg <https://viruta.org/docs/fmq-refactoring-c-to-rust.pdf>`_. It
177 describes ways in which librsvg's C code was refactored to allow
178 porting it to Rust.
179
180 - `Federico Mena's blog posts on librsvg
181 <https://viruta.org/tag/librsvg.html>`_ - plenty of of history and
182 stories from the development process.
183
184 Talks on librsvg.