Simon Hausmann
3e40835ec2
Fix more clap deprecation warnings
2022-06-14 11:32:03 +02:00
Tobias Hunger
c68291b7f8
Janitor: Clap update + basic functionality addition to all binaries
...
Make clap generate `--version`, and make it add more informtaion from
Cargo.toml available in `--help`.
2022-03-10 12:34:36 +01: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
Tobias Hunger
de4e195280
Rename internal crates and add a README.md to them
...
The README.md contains the warning that used to be in lib.rs.
Add README.md files to all internal crates
... pointing to the official public crate to use instead.
Rename internal crates
fixup: README files
fixup rename
2022-02-07 13:12:48 +01:00
Olivier Goffart
4115af88bd
Fixup previous merge
2022-02-04 17:43:15 +01:00
Simon Hausmann
125b90a64b
Merge remote-tracking branch 'origin/master' into wip/rename
...
Conflicts:
api/cpp/cbindgen.rs
api/cpp/include/slint.h
examples/CMakeLists.txt
examples/imagefilter/Cargo.toml
examples/plotter/main.rs
internal/backends/mcu/lib.rs
2022-02-04 16:47:20 +01:00
Tobias Hunger
458c88cfa4
Update loop-count
to iteration-count
in PropertyAnimation
2022-02-04 10:42:25 +01:00
Olivier Goffart
d2d6a5cc6a
Rename sixtyfps_
2022-02-02 14:25:56 +01:00
Tobias Hunger
cc3994b58d
Rename rust API
2022-02-02 13:26:35 +01:00
Olivier Goffart
7ee19cf7c0
syntax_updater: Allow for any "0.1.x" from version
2022-02-02 11:04:22 +01:00
Olivier Goffart
692171bf0c
Change the 60
blocks to slint
blocs in documentation comments
2022-02-02 10:51:42 +01:00
Olivier Goffart
03534039d6
Replace more .60 by .slint
...
Mainly an automated change with
git grep -O"sed -i 's/\.60/.slint/g'" -w "\.60"
and some manual checks
2022-02-02 10:12:31 +01:00
Simon Hausmann
cab22f8355
Rename the sixtyfps-compilerlib crate
2022-02-01 18:08:18 +01:00
Tobias Hunger
c02da14dc8
Move from stuctopt to clap 3
...
* Do not explicitly enable color output: That is default anyway
* Consistently use from_os_str() for file pathes
* Fix wrong types used in some places
2022-01-10 16:53:08 +01:00
Tobias Hunger
bfca0e3573
Mass update copyright messages to be more REUSE compliant
2021-12-22 10:06:12 +01:00
Olivier Goffart
ffccef4e0c
Examples: replace all _ by - in identifiers
2021-08-10 22:21:01 +02:00
Tobias Hunger
1d71a2beeb
Janitor: Fix clippy::collapsible_if
2021-08-09 13:19:34 +02:00
Tobias Hunger
24a2021226
Janitor: Fix clippy::needless_borrow
2021-08-04 22:50:35 +02:00
Tobias Hunger
0405beed83
Janitor: Fix clippy::redundant_static_lifetimes
2021-07-23 13:48:52 +02:00
Tobias Hunger
c3e0324787
Janitor: Spelling/grammar fixes in comments
2021-07-23 13:48:52 +02:00
Olivier Goffart
13bd828b96
Update license date
2021-07-02 15:55:54 +02:00
Olivier Goffart
9bf0c0d963
Fixup last commit
2021-07-02 12:52:56 +02:00
Olivier Goffart
7601c7e2eb
Updator: allow to update from 0.1.0
...
Even if there is nothing to do yet
2021-07-02 12:44:02 +02:00
Olivier Goffart
da1deb714b
Updater: Remove colspan/rowspan/row/col when not in a GridLayout
...
This was ignored before, and now it would be an error
2021-05-11 14:59:57 +02:00
Olivier Goffart
84e0b24550
Some refactoring of the syntax_nodes module
...
Ensure that the node always contains the write kind by panicking
if it doesn't.
Add some documentation for the macro that declares them
2021-04-14 11:46:49 +02:00
Olivier Goffart
84501e630a
Rename SyntaxNodeWithSourceFile to SyntaxNode
...
Same for SyntaxToken
2021-04-13 17:10:56 +02:00
Olivier Goffart
5c795e7bab
Use SyntaxNodeWithSourceFile everywhere instead of SyntaxNode
2021-04-13 17:10:56 +02:00
Olivier Goffart
471c2eb9f8
Updator from 0.0.5
2021-04-13 10:33:20 +02:00
Olivier Goffart
730b1ccff2
Refactor diagnostic: Merge BuildDiagnostic and FileDiagnostic
2021-03-12 19:32:50 +01:00
Olivier Goffart
0d2d48be4f
Rename "signal" to "callback"
2020-12-18 09:51:01 +01:00
Simon Hausmann
04661913b1
Add support for markdown code fences in the syntax updater
2020-10-16 12:30:11 +02:00
Simon Hausmann
bacc43140d
Minor cleanup in syntax updater
...
Move the .rs file processing into a helper function as we'll add a .md one soon, too.
2020-10-16 12:30:11 +02:00
Olivier Goffart
58cdaeb8dd
Update license header to mention that commertial option are available
2020-08-26 13:23:42 +02:00
Simon Hausmann
2823f32692
Apply license headers to all non-binary/non-json sources
2020-08-17 17:55:20 +02:00
Simon Hausmann
a9b0d84a72
Improve source file propagation
...
Instead of doing the SyntaxNodeWithSourceFile construction as late as
possible (in Document::from_node), we can do it as early as possible.
That'll reduce the chances of missing out the source file and prepares
for dependency loading just based on a SNWS :)
This also makes the source_file optional in the SNWS, but that's
consistent with what the diagnostics expect.
2020-07-22 16:10:02 +02:00
Simon Hausmann
64a4e749b7
Simplify path setup in the Diagnostics
...
Pass the path to the parse function, as that's easier at most call sites.
Also offer a convenience parse_file function.
2020-07-15 19:21:25 +02:00
Simon Hausmann
8e047d3761
Simplify compiler diagnostics API
...
Don't require the callers to hold on to the source code string until an
eventual diagnostics code path is hit. Instead it turns out it's
simpler to let the parser consume the source code as string, where
internally after tokenizing it can be moved into the diagnostics and
from there into the code map if needed.
There are a few places where we now clone the source code, but that's
only in cases where we also extract stuff separately (test code) or the
syntax updater.
2020-07-15 17:34:11 +02:00
Olivier Goffart
952ddda7c4
Force duration to have an unit
2020-07-14 16:18:12 +02:00
Olivier Goffart
3651885d87
Move the compiler binary in tools/
...
And rename sixtyfps_compiler to sixtyfps_compilerlib
2020-06-05 09:23:38 +02:00
Olivier Goffart
36fb526811
Do inlining in a pass before the lowering
2020-05-26 15:10:27 +02:00
Olivier Goffart
3965d9048f
syntax_updater: also update the .rs files containing sixtyfps!
2020-05-25 11:49:52 +02:00
Olivier Goffart
5228f3695d
Revert "Replace '=' with ':='"
...
This reverts commit 7be8b09b3b
.
Now that the replacement is done
2020-05-25 10:45:10 +02:00
Olivier Goffart
7be8b09b3b
Replace '=' with ':='
2020-05-25 10:43:19 +02:00
Olivier Goffart
058676e526
Initial import of a syntax_updater tool that rewrite files
2020-05-25 10:07:43 +02:00