mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
public API comment
This commit is contained in:
parent
ecd207bf26
commit
fe5845266b
1 changed files with 8 additions and 1 deletions
|
@ -32,4 +32,11 @@ former at build time.
|
|||
Anki uses Protocol Buffers to define backend methods, and the storage format of
|
||||
some items in a collection file. The definitions live in `proto/anki/`.
|
||||
|
||||
The Python/Rust bridge uses them to pass data back and forth, and some of the TypeScript code also makes use of them, allowing data to be communicated in a type-safe manner between the different languages.
|
||||
The Python/Rust bridge uses them to pass data back and forth, and some of the
|
||||
TypeScript code also makes use of them, allowing data to be communicated in a
|
||||
type-safe manner between the different languages.
|
||||
|
||||
At the moment, the protobuf is not considered public API. Some pylib methods
|
||||
expose a protobuf object directly to callers, but when they do so, they use a
|
||||
type alias, so callers outside pylib should never need to import a generated
|
||||
_pb2.py file.
|
||||
|
|
Loading…
Reference in a new issue