Skip to content

Commit

Permalink
Switch to CompilerCommand::link_override instead of annotation
Browse files Browse the repository at this point in the history
fix: forgot to change edition test crates

fix: remove unused stuff I forgot
  • Loading branch information
dzfranklin committed Jun 12, 2023
1 parent a0c37e8 commit 70230b2
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 357 deletions.
1 change: 0 additions & 1 deletion capnp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ pub mod message;
pub mod primitive_list;
pub mod private;
pub mod raw;
pub mod rust_capnp;
pub mod schema;
pub mod serialize;
pub mod serialize_packed;
Expand Down
268 changes: 0 additions & 268 deletions capnp/src/rust_capnp.rs

This file was deleted.

26 changes: 0 additions & 26 deletions capnpc/rust.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,6 @@ annotation parentModule @0xabee386cd1450364 (file) :Text;
# }
# }

annotation imports @0xc3b9fe42a83105cd (file) :List(Import);
# Allows specifying that the generated code for an import is located in another
# crate.
#
# You only need this if your code uses imported types whose generated code is
# in another crate. You can only use this annotation once in all the files
# compiled together.
#
# using Json = import "/capnp/compat/json.capnp";
#
# $Rust.imports([
# (path = "/capnp/compat/json.capnp", crate = "capnp_json")
# ]);

struct Import {
path @0 :Text;
crate @1 :Text;
}

annotation crate @0xc1763f46d790815c (file) :Text;
# The Rust crate that provides the generated code.
#
# You need this if you're providing a library to be used by other crates. If
# you're only using the generated code in your own crate then you don't need to
# change from the default.

annotation option @0xabfef22c4ee1964e (field) :Void;
# Make the generated getters return Option<T> instead of T. Supported on
# pointer types (e.g. structs, lists, and blobs).
Expand Down
Loading

0 comments on commit 70230b2

Please sign in to comment.