Damien Elmes
faec7f8e3d
update cargo-raze instructions
2021-10-02 16:24:44 +10:00
Damien Elmes
6b5ee469bb
attempt to fix Linux build
2021-07-23 21:00:51 +10:00
Damien Elmes
379694915e
add linkcheck to Bazel
2021-07-23 20:22:32 +10:00
Damien Elmes
c944dd048e
strip invalid Unicode chars in media check
2021-07-17 18:30:19 +10:00
Damien Elmes
bf507cca98
move from Python's URI escaping to IRI escaping in Rust
...
Should make non-Latin text readable in the HTML editor, without the
breakages reverted in the previous change.
2021-07-16 10:38:00 +10:00
Damien Elmes
576b141e2b
add back in missing check for upload size
...
Compression now happens up-front, so we can tell in advance if the
upload size has been exceeded.
2021-06-29 10:50:03 +10:00
Damien Elmes
ca0374782e
update to latest rusqlite
2021-06-25 16:22:21 +10:00
Damien Elmes
59e17950ad
update most rust deps; skip rusqlite
2021-06-25 15:35:25 +10:00
Damien Elmes
a58826941f
add rustls-native-certs
...
closes #1241
2021-06-18 18:15:41 +10:00
Damien Elmes
e6a7b8fba1
update Rust deps
2021-06-18 18:12:06 +10:00
Damien Elmes
ecdd668f9a
update Rust deps
2021-06-16 16:10:57 +10:00
Damien Elmes
dfba66faa9
update Rust deps
2021-05-07 18:22:27 +10:00
Damien Elmes
92e4de16cf
report pinned package issues upstream
2021-04-27 23:11:22 +10:00
Damien Elmes
cf2613e869
update Rust deps
...
- tokio 1.0
- updated reqwest, thanks to Rumo
- other minor dep updates
the reqwest build file has been split into two, as it was awkward
to manually update the combined file, and the platform gate is now
on the target in rslib/
2021-04-27 22:18:12 +10:00
Damien Elmes
c49d6ce49f
run black/isort on Python scripts
2021-04-14 18:22:02 +10:00
Damien Elmes
948fc5f777
add missing copyright headers to *.py
2021-04-13 18:45:35 +10:00
Damien Elmes
1704f7fe80
drop dependency on failure crate
2021-04-01 17:21:13 +10:00
Damien Elmes
89d249b3b6
update to the latest rules_rust + security framework update
2021-03-27 19:28:19 +10:00
Damien Elmes
c9c5ecdd31
update cargo/README.md
...
closes #1096
2021-03-27 14:56:51 +10:00
Damien Elmes
a96ac98605
update Rust deps
2021-03-27 14:47:16 +10:00
Damien Elmes
e4002d7a5e
update to latest Fluent
2021-03-27 13:24:11 +10:00
Damien Elmes
9aece2a7b8
rework translation handling
...
Instead of generating a fluent.proto file with a giant enum, create
a .json file representing the translations that downstream consumers
can use for code generation.
This enables the generation of a separate method for each translation,
with a docstring that shows the actual text, and any required arguments
listed in the function signature.
The codebase is still using the old enum for now; updating it will need
to come in future commits, and the old enum will need to be kept
around, as add-ons are referencing it.
Other changes:
- move translation code into a separate crate
- store the translations on a per-file/module basis, which will allow
us to avoid sending 1000+ strings on each JS page load in the future
- drop the undocumented support for external .ftl files, that we weren't
using
- duplicate strings in translation files are now checked for at build
time
- fix i18n test failing when run outside Bazel
- drop slog dependency in i18n module
2021-03-26 09:41:32 +10:00
Damien Elmes
19c217d8a4
add note about bumping Rust deps
2021-03-15 13:29:36 +10:00
Arthur Milchior
80db5dc7d5
update is executable
...
Without this change, I can't just do `./update.py` and need to do `python3 update.py`
2021-03-13 07:35:36 +01:00
Damien Elmes
77accb458f
roll back slog-term due to Windows breakage
2021-03-10 12:22:11 +10:00
Damien Elmes
265e91c13f
add strum crate
2021-03-10 11:53:27 +10:00
Damien Elmes
0207f6c0ab
update Rust deps
2021-03-10 11:53:27 +10:00
Damien Elmes
ded626f0b9
render deck description with markdown; strip images
...
To support images on that screen, we'll first need to adjust the base url
for each platform, or rewrite the local image URLs, as otherwise they
are resolved to _anki/pages/...
2021-02-06 15:02:40 +10:00
Damien Elmes
6ba321f818
sanitize deck description in decks screen on backend
...
Looks like ammonia only adds about 800k to the release binary
2021-02-06 13:42:38 +10:00
Damien Elmes
da407a5000
pin proc_macro_nested due to Windows breakage
2021-02-03 21:17:11 +10:00
Damien Elmes
790562cd08
update Rust deps
2021-02-03 20:29:48 +10:00
Damien Elmes
9225c804db
update Rust deps; add async_trait
2021-01-11 19:19:45 +10:00
Damien Elmes
eca27b3710
add aarch64-linux to BUILD.request.bazel
2020-12-30 20:39:27 +10:00
Damien Elmes
3f3f4b5c36
add aarch64 Linux to cargo; update deps
2020-12-30 13:33:16 +10:00
Damien Elmes
40c5f8a907
update prost to new 0.7 release+auto stage changes
...
Allows us to drop slow git repo.
2020-12-28 10:12:35 +10:00
Damien Elmes
c4382e38a1
update to stable pyo3 0.13 release
2020-12-23 10:08:38 +10:00
Damien Elmes
72baccd423
update Rust deps
2020-12-23 10:06:35 +10:00
Damien Elmes
91a9307c39
update to cargo-raze 0.8.0 release
2020-12-18 11:56:56 +10:00
Damien Elmes
71f742aa56
update Rust deps
2020-12-18 11:56:28 +10:00
Damien Elmes
d49416649c
update to latest cargo-raze
2020-12-15 20:28:10 +10:00
Damien Elmes
75cbbea048
Merge pull request #848 from cecini/rslibdep
...
Update Rust deps, and nom to v6
2020-12-15 20:04:02 +10:00
cecini
d37ea0f5f7
Update rslib dep nom
2020-12-15 08:19:52 +00:00
cecini
aa715eee93
fix update.py for compatible
2020-12-15 08:09:11 +00:00
Damien Elmes
85b7e1c623
drop unused i686 references
...
https://forums.ankiweb.net/t/changing-ankis-build-system-to-bazel/4737/9
2020-12-09 15:45:01 +10:00
Damien Elmes
93c1289e69
bump rust deps
2020-12-09 15:34:43 +10:00
Damien Elmes
78125aa974
use compile_data with cargo raze
...
requires https://github.com/ankitects/cargo-raze/releases/tag/anki-2020-12-01
2020-12-01 16:48:45 +10:00
Damien Elmes
9a1ddec553
make pyo/ring data arguments more specific
2020-12-01 16:48:45 +10:00
Damien Elmes
4c3577b12e
update Rust deps incl. Pyo3
...
This includes the refcount bug fix from pyo3 0.12.4
2020-12-01 16:48:45 +10:00
Damien Elmes
c9b3ed1eae
switch to workspace for Rust code
2020-11-24 18:41:03 +10:00
Damien Elmes
4abf244101
update rust deps
2020-11-24 16:57:37 +10:00