<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/arti-rpc-client-core/cbindgen.warnings, branch arti-v1.2.6</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.6</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.6'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-07-31T17:57:03Z</updated>
<entry>
<title>ffi: Re-run cbindgen.</title>
<updated>2024-07-31T17:57:03Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-31T17:57:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4497317f07df7a0f13bddc4e7a7727dbe12532b9'/>
<id>urn:sha1:4497317f07df7a0f13bddc4e7a7727dbe12532b9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rpclib: Grand error refactoring: outparam, not thread-local</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-25T13:52:56Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6b1f266a8405d7c07b10e5cf2b153c575e6f2288'/>
<id>urn:sha1:6b1f266a8405d7c07b10e5cf2b153c575e6f2288</id>
<content type='text'>
Per discussion, we'd rather have an optional output parameter for error
objects rather than mess with thread-local variables.

This is possibly less convenient for direct usage from C,
but likely more convenient for wrapper functions in other languages.
</content>
</entry>
<entry>
<title>rpclib: _Sketch_ of string API.</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-24T19:13:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5265d6c1aa3c14ef09d908c9695eb1f003253d33'/>
<id>urn:sha1:5265d6c1aa3c14ef09d908c9695eb1f003253d33</id>
<content type='text'>
In this API, borrowed strings are `const char *`, and owned strings
are `ArtiRpcStr *`.  You can get the former from the latter with
`arti_rpc_str_get()`, which returns a `const char *` in hopes that
you will neither modify nor free() that `const char *`

(Note that there are no places where string ownership needs to be
passed into this library; and at present, there is only one case
where it is passed out.  I do not anticipate that we will need to do
intake of owned strings.  We will probably need to return these in a
few more cases as we add more API surface.)
</content>
</entry>
<entry>
<title>rpc ffi: Try a more reference-driven approach to pointer handling.</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-17T18:49:55Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7e48f725dd665c5ff6eb07f16bd4957274767f6c'/>
<id>urn:sha1:7e48f725dd665c5ff6eb07f16bd4957274767f6c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a script to run cbindgen and check its outputs.</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-17T15:16:44Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=544487c333fd5199d36fe4ddf781c70bfd9ee020'/>
<id>urn:sha1:544487c333fd5199d36fe4ddf781c70bfd9ee020</id>
<content type='text'>
This is a bit complicated since:
  - Using cbindgen with macro expansion requires a nightly rust:
    so, we have to look for one.

  - There are some cbindgen warnings which I cannot find any way to
    suppress, so instead of giving all warnings, it seems better to
    give a diff from the old list of warnings to the new list.
</content>
</entry>
</feed>
