Commit Graph

2496 Commits

Author SHA1 Message Date
David Tolnay
338636308b
Pass through serde attributes 2021-12-05 19:37:43 -08:00
David Tolnay
d2a3315eb5
Update ui test suite to nightly-2021-12-02 2021-12-01 18:52:35 -08:00
David Tolnay
0854ef70c0
Release 1.0.57 2021-11-30 23:14:35 -08:00
David Tolnay
0e93fb4e2e
Lockfile update 2021-11-30 23:12:27 -08:00
David Tolnay
02d5c6e80e
Merge pull request #967 from adetaylor/export-unique-ptrs
Export UniquePtr and similar functions.
2021-11-30 23:06:57 -08:00
adetaylor
0431bad0dd Export UniquePtr and similar functions.
Previously these did not respect
  cxxbridge --cxx-impl-annotations
and similar directives in other build pipelines. These may be linked against
from Rust code just as other generated functions are, so it's important that
they are exported from shared objects in a similar fashion.
2021-11-29 22:33:25 -08:00
David Tolnay
df31229dbf
Tweak head.hbs spacing to render neater with newest version of mdbook 2021-11-27 10:25:29 -08:00
David Tolnay
ae6016e26a
Update Bazel/Buck lockfile following PR 962 2021-11-23 11:51:37 -08:00
David Tolnay
af454436ad
Merge pull request #962 from adetaylor/remove-cc
Remove unnecessary dependency from `gen/lib`
2021-11-23 11:42:55 -08:00
Adrian Taylor
9d0cb7958a Remove unnecessary dependency. 2021-11-23 11:28:51 -08:00
David Tolnay
9e55768c03
Update ui test suite to nightly-2021-11-22 2021-11-21 18:48:05 -08:00
David Tolnay
178b0b6b49
Install newest build of cargo-outdated
The old version available by default in the GitHub Actions image fails
with:

    thread 'main' panicked at 'package cache lock is not currently held, Cargo forgot to call `acquire_package_cache_lock` before we got to this stack frame', /usr/share/rust/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.57.0/src/cargo/util/config/mod.rs:1542:9
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2021-11-17 13:32:33 -08:00
David Tolnay
ede65e0ce2
Analytics compliant to GDPR without cookie consent 2021-11-01 17:14:10 -07:00
David Tolnay
fa350acb77
Set a google analytics 4 global site tag 2021-11-01 17:12:12 -07:00
David Tolnay
9bbdfc25a4
Refer to serde derives through absolute path
Touch up PR 941.
2021-10-26 19:50:53 -07:00
David Tolnay
0faefeb777
Merge pull request #941 from rookboom/master
Added Serde Serialize/Deserialize traits
2021-10-26 19:50:07 -07:00
Johan Verwey
b3ac95e814
Added Serde Serialize/Deserialize traits 2021-10-26 19:48:43 -07:00
David Tolnay
6d6a93d79c
Merge pull request #954 from hlopko/use_defs_bzl
Migrate cxx for bazelbuild/rules_rust#591
2021-10-26 19:40:45 -07:00
David Tolnay
2040717efa
Fill in missing rust_proc_macro Bazel import 2021-10-26 19:37:29 -07:00
David Tolnay
6fec63d89d
Update ui tests to most recent trybuild normalization 2021-10-26 13:02:25 -07:00
David Tolnay
be82bd8c39
Lockfile update 2021-10-26 13:02:08 -07:00
Marcel Hlopko
0ad4fe5543 Migrate cxx for bazelbuild/rules_rust#591 2021-10-26 08:16:00 +02:00
David Tolnay
10173e5499
Update ui test suite to nightly-2021-10-26 2021-10-25 19:34:49 -07:00
David Tolnay
d8ef03b0da
Work around distracting guidance from rustc on types needed 2021-10-25 19:33:41 -07:00
David Tolnay
989ce7db0f
Resolve to_string_in_format_args clippy lint
error: `to_string` applied to a type that implements `Display` in `format!` args
      --> syntax/symbol.rs:45:44
       |
    45 |         Symbol(format!("{}{}", prefix, self.to_string()))
       |                                            ^^^^^^^^^^^^ help: remove this
       |
       = note: `-D clippy::to-string-in-format-args` implied by `-D clippy::all`
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
2021-10-22 19:28:33 -07:00
David Tolnay
6ca43ce46f
Lockfile update 2021-10-08 02:58:44 -04:00
David Tolnay
9f83380038
Ui test changes for trybuild 1.0.49 2021-10-08 02:44:10 -04:00
David Tolnay
981d720cf7
Add actions job to notice outdated dependencies 2021-10-08 01:48:29 -04:00
David Tolnay
fff869fcda
Update ui test files 2021-10-07 00:40:08 -04:00
David Tolnay
c7b0a289bf
Merge pull request #947 from dtolnay/bazel
Pull in newer Bazel rules_rust
2021-10-05 18:14:11 -04:00
David Tolnay
1bcdd75a8c
Link using lld in Bazel builds 2021-10-05 18:02:29 -04:00
David Tolnay
9846f3beb3
Pull in newer Bazel rules_rust 2021-10-05 17:35:57 -04:00
David Tolnay
e172c85214
Bump Bazel build to rustc 1.55.0 2021-10-05 16:58:46 -04:00
David Tolnay
4c4987390a
Release 1.0.56 2021-10-05 16:48:49 -04:00
David Tolnay
e46a00ce0b
Lockfile update 2021-10-05 16:35:38 -04:00
David Tolnay
722089e47b
Merge pull request #946 from dtolnay/dochidden
Pass through doc(hidden) attribute
2021-10-05 16:34:21 -04:00
David Tolnay
9754a725f5
Pass through doc(hidden) attribute 2021-10-05 16:27:08 -04:00
David Tolnay
e6cd18ee16
Declare minimum Rust version in Cargo metadata 2021-10-02 02:35:02 -04:00
David Tolnay
ac98b543b8
Release 1.0.55 2021-09-24 11:47:58 -07:00
David Tolnay
82cbaeb945
Lockfile update 2021-09-24 11:46:50 -07:00
David Tolnay
56045a1e47
Merge pull request #939 from dtolnay/symlinkrace
Fix race condition between simultaneous build scripts creating symlinks
2021-09-24 11:45:07 -07:00
David Tolnay
1dd71ca1db
Fix race condition between simultaneous build scripts creating symlinks 2021-09-24 11:39:15 -07:00
David Tolnay
36d9ac1fab
Update ui test suite to nightly-2021-09-14 2021-09-14 19:14:18 -07:00
David Tolnay
5d71b1fa13
Merge pull request #932 from dtolnay/clippy
Re-enable clippy after upstream crash fix
2021-09-12 05:31:44 -07:00
David Tolnay
1fae979805
Remove ignore of deleted filter_map clippy lint
warning: lint `clippy::filter_map` has been removed: this lint has been replaced by `manual_filter_map`, a more specific lint
     --> macro/src/lib.rs:6:5
      |
    6 |     clippy::filter_map,
      |     ^^^^^^^^^^^^^^^^^^
      |
      = note: `#[warn(renamed_and_removed_lints)]` on by default
2021-09-12 05:20:57 -07:00
David Tolnay
649da65e44
Ignore derivable_impls lint in generated code 2021-09-12 05:19:54 -07:00
David Tolnay
84333be213
Ignore if_same_then_else clippy lint
error: this `if` has identical blocks
       --> gen/build/src/gen/write.rs:704:33
        |
    704 |           if arg.ty == RustString {
        |  _________________________________^
    705 | |             write!(out, "const ");
    706 | |         } else if let Type::RustVec(_) = arg.ty {
        | |_________^
        |
        = note: `-D clippy::if-same-then-else` implied by `-D clippy::all`
    note: same as this
       --> gen/build/src/gen/write.rs:706:49
        |
    706 |           } else if let Type::RustVec(_) = arg.ty {
        |  _________________________________________________^
    707 | |             write!(out, "const ");
    708 | |         }
        | |_________^
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else

    error: this `if` has identical blocks
       --> macro/src/expand.rs:430:33
        |
    430 |           if arg.ty == RustString {
        |  _________________________________^
    431 | |             quote!(#var #colon *const #ty)
    432 | |         } else if let Type::RustVec(_) = arg.ty {
        | |_________^
        |
        = note: `-D clippy::if-same-then-else` implied by `-D clippy::all`
    note: same as this
       --> macro/src/expand.rs:432:49
        |
    432 |           } else if let Type::RustVec(_) = arg.ty {
        |  _________________________________________________^
    433 | |             quote!(#var #colon *const #ty)
    434 | |         } else if let Type::Fn(_) = arg.ty {
        | |_________^
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else
2021-09-12 05:18:13 -07:00
David Tolnay
c65fa3bb53
Re-enable clippy after upstream crash fix 2021-09-12 05:15:24 -07:00
David Tolnay
d9a561cf48
Delete unused span field from ForeignName
warning: field is never read: `span`
      --> macro/src/syntax/names.rs:12:5
       |
    12 |     span: Span,
       |     ^^^^^^^^^^
       |
       = note: `#[warn(dead_code)]` on by default
2021-09-12 05:08:34 -07:00
David Tolnay
fccef86d19
Release 1.0.54 2021-08-27 13:39:49 -07:00