Commit Graph

2927 Commits

Author SHA1 Message Date
fangting
9abd4b0223 OAT查缺补漏
Signed-off-by: fangting <fangting12@huawei.com>
2023-08-07 10:48:54 +08:00
fangting
9bb96f9ac3 add oh user guide
Signed-off-by: fangting <fangting12@huawei.com>
2023-05-04 11:40:57 +08:00
openharmony_ci
56d4179aa5
!5 Add README_zh.md
Merge pull request !5 from fangting/readme_zh
2023-04-25 03:45:22 +00:00
fangting
ad263b49e2 Add README_zh.md
Issue:#I6YAO1

Signed-off-by: fangting <fangting12@huawei.com>
2023-04-25 10:19:02 +08:00
openharmony_ci
de817638eb
!2 Add OAT.xml and README.OpenSource
Merge pull request !2 from fangting/master
2023-04-14 08:10:47 +00:00
fangting
e81d231b03 Add OAT.xml and README.OpenSource
Signed-off-by: fangting <fangting12@huawei.com>
2023-04-14 14:14:46 +08:00
openharmony_ci
b9bcc2591e
!1 [cxx]Add GN Build Files and Custom Modifications to Rust Third-party Libraries
Merge pull request !1 from lubinglun/master
2023-04-13 11:34:17 +00:00
lubinglun
2047426ea5 Add GN Build Files and Custom Modifications
Issue:https://gitee.com/openharmony/build/issues/I6UFTP
Signed-off-by: lubinglun <lubinglun@huawei.com>
2023-04-12 17:25:56 +08:00
David Tolnay
473f24ab1a
Release 1.0.91 2023-02-15 09:29:18 -08:00
David Tolnay
580f29a57c
Exclude buck2 prelude submodule from published crate 2023-02-15 09:25:32 -08:00
David Tolnay
33b5c9eec5
Release 1.0.90 2023-02-10 19:36:09 -08:00
David Tolnay
11c74724ef
Lockfile update 2023-02-10 19:35:29 -08:00
David Tolnay
8ca5686a2f
Regenerate Bazel build targets using rules_rust 0.18.0 2023-02-10 19:34:23 -08:00
David Tolnay
b3bdffce04
Ignore extra_unused_type_parameters clippy lint in generated code
error: type parameter goes unused in function definition
      --> demo/src/main.rs:11:14
       |
    11 |         type MultiBuf;
       |              ^^^^^^^^
       |
       = help: consider removing the parameter
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
       = note: `-D clippy::extra-unused-type-parameters` implied by `-D clippy::all`

    error: type parameter goes unused in function definition
      --> src/cxx_string.rs:94:15
       |
    94 |     pub fn new<T: Private>() -> Self {
       |               ^^^^^^^^^^^^
       |
       = help: consider removing the parameter
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters

    error: type parameter goes unused in function definition
       --> src/extern_type.rs:184:27
        |
    184 | pub fn verify_extern_type<T: ExternType<Id = Id>, Id>() {}
        |                           ^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: consider removing the parameter
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
        = note: `-D clippy::extra-unused-type-parameters` implied by `-D clippy::all`

    error: type parameter goes unused in function definition
       --> src/extern_type.rs:187:27
        |
    187 | pub fn verify_extern_kind<T: ExternType<Kind = Kind>, Kind: self::Kind>() {}
        |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: consider removing the parameter
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters

    error: type parameter goes unused in function definition
       --> tests/ffi/lib.rs:230:14
        |
    230 |         type Reference<'a>;
        |              ^^^^^^^^^
        |
        = help: consider removing the parameter
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
        = note: `-D clippy::extra-unused-type-parameters` implied by `-D clippy::all`

    error: type parameter goes unused in function definition
       --> tests/ffi/lib.rs:259:14
        |
    259 |         type R;
        |              ^
        |
        = help: consider removing the parameter
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
2023-02-10 19:21:36 -08:00
David Tolnay
a2f3ccc6ed
Update ui test suite to nightly-2023-02-11 2023-02-10 19:19:47 -08:00
David Tolnay
7f068926e3
Bazel rules_rust 0.18.0 2023-02-09 17:47:35 -08:00
David Tolnay
1bda14d3dd
Add remark on build systems
Closes #1173.
2023-02-01 18:59:38 -08:00
David Tolnay
1fdbb96b62
Release 1.0.89 2023-02-01 12:52:54 -08:00
David Tolnay
0ee707c355
Lockfile update 2023-02-01 12:52:22 -08:00
David Tolnay
4881632352
Merge pull request #1172 from dtolnay/pedanticclippy
Suppress various pedantic clippy lints
2023-02-01 12:48:30 -08:00
David Tolnay
69f0380c3d
Suppress various pedantic clippy lints 2023-02-01 12:44:48 -08:00
David Tolnay
19f1bb6eb8
Merge pull request #1171 from dtolnay/deadenum
Suppress dead_code on generated enum variants
2023-02-01 12:43:29 -08:00
David Tolnay
721bfc4eb3
Suppress dead_code on generated enum variants 2023-02-01 12:38:18 -08:00
David Tolnay
036bb92ff3
Merge pull request #1169 from Enyium/patch-1
Add docs.rs documentation link to `cxx-build`'s `Cargo.toml`
2023-01-31 19:22:24 -08:00
David Tolnay
1f13e312b5
Update ui test suite to nightly-2023-02-01 2023-01-31 19:19:27 -08:00
Enyium
e59b4db200
Add docs.rs documentation link to cxx-build's Cargo.toml 2023-02-01 04:18:53 +01:00
David Tolnay
9610dd5a7a
Bazel rules_rust 0.17.0 2023-01-27 14:59:56 -08:00
David Tolnay
8654de605d
Bump Bazel build to rustc 1.67.0 2023-01-27 14:58:07 -08:00
David Tolnay
86e408972b
Merge pull request #1168 from kud1ing/patch-1
Example code for `#[cxx::bridge]`: `struct MyType;`=> `type MyType;`
2023-01-27 11:50:15 -08:00
kud1ing
9e7a622ca9
Example code for #[cxx::bridge]: struct MyType;=> type MyType; 2023-01-27 19:40:48 +01:00
David Tolnay
f33abb9ca8
Release 1.0.88 2023-01-26 20:48:38 -08:00
David Tolnay
e5b79adc2c
Lockfile update 2023-01-26 20:47:52 -08:00
David Tolnay
320b7af3eb
Merge pull request #1167 from umogSlayer/fix-move-assignment-memory-leak
Fix memory leak inside the move assignment operator of rust::Error class
2023-01-26 20:45:48 -08:00
Vladimir Bayrashevskiy
2f8918f5d0 Fix memory leak inside the move assignment operator of rust::Error class 2023-01-26 14:14:15 +07:00
David Tolnay
d49ab2265a
Resolve starlark linter warnings
$ buck2 starlark lint tools/buck
    tools/buck/buildscript.bzl:7:9-13: Unused argument `cfgs`
    tools/buck/buildscript.bzl:6:9-16: Unused argument `version`
    tools/buck/buildscript.bzl:8:9-17: Unused argument `features`
    tools/buck/buildscript.bzl:3:9-21: Unused argument `package_name`
2023-01-20 16:20:58 -08:00
David Tolnay
3aa71ecdd4
Release 1.0.87 2023-01-19 19:01:49 -08:00
David Tolnay
b3022bb6ba
Lockfile update 2023-01-19 19:01:15 -08:00
David Tolnay
e99c693d29
Merge pull request #1155 from dtolnay/singlequote
Improve formatting of single quote in Debug of CxxString
2023-01-19 18:59:41 -08:00
David Tolnay
0ca09b9b1a
Improve formatting of single quote in Debug of CxxString 2023-01-19 18:56:13 -08:00
David Tolnay
759a9dddda
Add test of CxxString Debug format 2023-01-19 18:55:48 -08:00
David Tolnay
913b6149c1
Raise minimum tested rustc to 1.64
Required by clap 4.1 / clap_lex 0.3.1:

    error: package `clap_lex v0.3.1` cannot be built because it requires rustc 1.64.0 or newer
2023-01-13 19:05:55 -08:00
David Tolnay
bfb56d2a80
Update ui test suite to nightly-2023-01-13 2023-01-12 20:29:19 -08:00
David Tolnay
fe16a5dea3
Raise minimum rustc to 1.60 2023-01-07 12:37:18 -08:00
David Tolnay
1f3627267a
Release 1.0.86 2023-01-07 12:18:32 -08:00
David Tolnay
2e4c57880d
Lockfile update 2023-01-07 12:15:08 -08:00
David Tolnay
a72a40902b
Merge pull request #1150 from dtolnay/cxxname
Support cxx_name containing name that is Rust keyword
2023-01-07 12:07:53 -08:00
David Tolnay
46040d0912
Support cxx_name containing name that is Rust keyword 2023-01-07 12:02:52 -08:00
David Tolnay
7d7c757e28
Add test of cxx_name which is Rust keyword
Currently fails with:

    error[cxxbridge]: expected identifier
       ┌─ lib.rs:46:22
       │
    46 │         #[cxx_name = "type"]
       │                      ^^^^^^ expected identifier
2023-01-07 12:02:38 -08:00
David Tolnay
13e7e10414
Update bazelbuild/rules_rust to 0.16.1 2023-01-06 14:05:39 -08:00
David Tolnay
3177ed5c45
Mark third-party/bazel BUILD files as generated code 2023-01-05 08:50:31 -08:00