Yuri Astrakhan
9621cae218
Auto-fixed clippy::needless_lifetimes
...
`__CARGO_FIX_YOLO=1` is a hack, but it does help a lot with the tedious fixes where the result is fairly clear.
See https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
```
__CARGO_FIX_YOLO=1 cargo clippy --fix --all-targets --workspace --exclude gstreamer-player --exclude i-slint-backend-linuxkms --exclude uefi-demo --exclude ffmpeg -- -A clippy::all -W clippy::needless_lifetimes
cargo fmt --all
```
2025-02-07 09:20:49 +01:00
Yuri Astrakhan
4ae2627ade
A few more format arg inlining
...
Used these commands and some manual searching
```
cargo clippy --fix --all-targets --workspace --exclude gstreamer-player --exclude i-slint-backend-linuxkms --exclude uefi-demo --exclude ffmpeg -- -A clippy::all -W clippy::uninlined_format_args
cargo clippy --all-targets -- -A clippy::all -W clippy::uninlined_format_args
cargo clippy --fix -- -A clippy::all -W clippy::uninlined_format_args
```
2025-02-07 06:43:19 +01:00
Olivier Goffart
e34d5f61a5
Prepare for release of helper crates
2024-03-14 08:52:09 +01:00
Olivier Goffart
aa7360a91a
const-field-offset: Fix warnings on nightly rust
...
```
warning: non-local impl definition, they should be avoided as they go against expectation
```
Part of #4706
2024-02-28 11:19:26 +01:00
Olivier Goffart
bd86c93ffa
const-field-offset: Prepare for release
...
Just some warning fixes and update the domain in the Cargo.toml
2024-02-20 15:12:37 +01:00
Tobias Hunger
9faffc75bb
janitor: Fix warnings about unused members
...
I get warnings about unused members using the nightly compiler, one for
each member in all structs that derive the `FieldOffsets` macro. That is
a lot.
This fixes that as well as the one occurrence of that same warning in
unrelated code.
2024-01-09 10:48:19 +01:00
Tobias Hunger
0139eea4f9
xtask: Fix up license headers
...
* Keep project related .md files triple licensed as the rest of the
crate
* Make vtable MIT OR Apache 2.0 (as suggested by @ogoffart)
2023-08-17 08:55:28 +02:00
Simon Hausmann
96d7bb132c
reuse: remove glob for markdown files
...
Instead, place the copyright and license right into the source.
To satisfy reuse, this also removes the unnecessary MIT.txt
symlinks.
2023-08-17 08:55:28 +02:00
Olivier Goffart
31fc7cdd08
Janitor: Some dependencies update
2023-06-21 17:24:57 +02:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +02:00
Olivier Goffart
cae1ef1238
Date in Changelog for the release
2023-04-03 07:29:02 +02:00
Olivier Goffart
8cefde7c3a
Remove space before => in quote_spanned
...
That's the style encouraged by the documentation
2023-03-24 11:14:48 +01:00
Olivier Goffart
8169b5629e
const-field-offset: update to syn 2
2023-03-22 09:49:54 +01:00
Olivier Goffart
00de1867ae
Janitor: deps upgrade
2023-01-16 10:47:55 +01:00
Olivier Goffart
cd30599ac3
Upgrade memoffset used as a dev-dependencies
2022-10-17 16:50:14 +02:00
Olivier Goffart
3166b78298
const-field-offset: enable the trait feature to the dev-dependency
...
otherwise test fail with --all-features
2022-08-30 22:21:03 +02:00
Tobias Hunger
4230ac2572
Update copyright information to reflect name change
...
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
Olivier Goffart
1425ef63de
Change the Url from sixtyfps.io to slint-ui.com
...
Also, change the URL of the logo in the docs
2022-02-08 08:52:46 +01:00
Olivier Goffart
00ff5e21a7
Update git repository URL
2022-02-08 08:26:21 +01:00
Tobias Hunger
1534f87e30
Change authors to Slint Developers
2022-02-02 16:21:34 +01:00
Olivier Goffart
a45dcc1f9a
Update to edition 2021
...
The ffi function wrapper need to be changed because in the 2021 edition, when
the capture is moved into the closure, it moves the individual field instead
of the whole wrapper. But we need to move the whole wrapper because the Drop
of the wrapper will delete the C++ closure, and we don't want to call the
closure after it is deleted.
2022-01-25 11:40:11 +01:00
Tobias Hunger
0063476aff
Update license information
...
Use the reuse tool to get a better grip on licenses used in sixtyfps.
Fix a couple of licenses along the way.
* Uses creative commons for our own logo (commercial use!)
* Fixes some license information found in README files and documents
them with proper .license files.
* Document Apache/MIT for helper_crates/const-field-offset which matches
what its documentaion site says it uses.
* Add a list of licenses that apply to crates we publish and the tooling
we have.
This patch only adds static information and does not contain any tooling
support.
2022-01-20 14:45:02 +01:00
Tobias Hunger
2f6be7b31f
Mass-add copyright headers into Cargo.toml files
2022-01-19 11:25:21 +01:00
Tobias Hunger
bfca0e3573
Mass update copyright messages to be more REUSE compliant
2021-12-22 10:06:12 +01:00
Olivier Goffart
06f37b40cf
Update ChangeLog of helper crates
2021-11-24 16:21:04 +01:00
Olivier Goffart
390b838c21
Use intra doc links in the documentation of vtable and const-field-offset macro
2021-11-09 17:37:31 +01:00
Olivier Goffart
669f96d2b6
const-field-offset: Also fix privacy rule when field-offset-trait feature is activated
2021-11-09 14:36:50 +01:00
Olivier Goffart
d97fe873ec
Fix the FieldOffsets derive macro on non pub struct
...
When the struct expose as public a private type
2021-11-08 19:01:29 +01:00
Tobias Hunger
aea4ecca99
Apply pre-commit hooks to all files
2021-08-17 22:38:16 +02:00
Olivier Goffart
8aac74d81d
const-field-offset: Bump version and add ChangeLog
2021-08-16 11:20:39 +02:00
Olivier Goffart
4af34a8de1
const-field-offset: fix a bunch of clippy warnings in tests
2021-08-16 11:12:17 +02:00
Tobias Hunger
ad98137c17
Janitor: Mark up float comparisons where we want bitwise identity
...
Mark up test cases where we want bitwise identity of float values and
use `assert_eq!` since that produces better output in the error case.
2021-07-09 17:00:46 +02:00
Tobias Hunger
b6ff90ed42
Janitor: No clippy::eval_order_dependence in FieldOffsets macro
...
The entire point of this code is that it is order dependent, so it
makes little sense to warn about that!
2021-07-08 06:47:05 +02:00
Tobias Hunger
ac207428dc
Janitor: CSpell fixes
...
Mark up some special words in documents (like C++ lingo in rust files).
2021-07-06 22:44:09 +02:00
Tobias Hunger
a5b61aa52b
Janitor: Fix spelling in error messages
2021-07-03 18:22:01 +02:00
Olivier Goffart
13bd828b96
Update license date
2021-07-02 15:55:54 +02:00
Tobias Hunger
13d7f5e7bd
Janitor: Fix typos in comments and user-facing strings
...
Also adapt tests for error messages containing the fixed strings.
No behavior change is intended!
2021-06-28 08:32:25 +02:00
Olivier Goffart
4c13221572
Add a readme dor the const-field-offset crate
2020-12-07 15:27:50 +01:00
Olivier Goffart
ca73c73725
Update memoffset version
...
This is just a dev dependency so no new release is needed because of that
2020-12-07 11:33:11 +01:00
Olivier Goffart
1138c9dbed
Normalize the spelling of SixtyFPS
2020-10-13 07:48:55 +02:00
Olivier Goffart
58cdaeb8dd
Update license header to mention that commertial option are available
2020-08-26 13:23:42 +02:00
Olivier Goffart
2a0c496e41
minor doc changes
2020-08-26 08:32:13 +02:00
Simon Hausmann
b80182ce00
Minor doc fix for FieldOffsets.
...
Split the sentence into two pieces to make it easier to read.
2020-08-25 16:00:48 +02:00
Olivier Goffart
697aa61a0c
Some doc polish
2020-08-25 15:33:15 +02:00
Olivier Goffart
c299bd5483
We are not using the ConstFieldOffset trait, so put it in a feature gate
2020-08-25 14:42:18 +02:00
Olivier Goffart
2c0fc29c5c
Some fixup for the documentation
2020-08-25 14:42:18 +02:00
Olivier Goffart
304b0e7b0e
Make sure the langref doc can be opened if the package is on crates.io
...
One need to make a symlink because the files need to be in the package
2020-08-25 14:42:18 +02:00
Olivier Goffart
05a6681b92
The version 0.3.2 of field-offset was released
2020-08-24 16:39:47 +02:00
Olivier Goffart
ea1f215367
Some polishinbg of the .toml files
...
- Give all the sixtyfps-* create a 0.0.1 version
- Make sure that the internal dependences are using the exact same version
(so "=0.0.1")
- Add the description/homepage/repository fields in the .toml files
- Set publish=false to crates that are not meant to be published on crates.io
2020-08-24 16:28:11 +02:00
Olivier Goffart
cbeb982684
Use the FieldOffset struct from the upstream create
2020-08-24 11:20:38 +02:00