Skip to content

Commit

Permalink
Take a look at the value of CARGO_MANIFEST_DIR ---------------------->
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0246 committed Oct 31, 2023
1 parent f352dc2 commit 35fe4a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ jobs:
# - name: Ninja Install
# run: pip install ninja
- uses: actions/checkout@v3
- name: Build tests
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Build examples
run: |
cd examples
Expand All @@ -31,10 +27,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build tests
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Build examples
run: |
cd examples
Expand All @@ -43,10 +35,6 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build tests
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Build examples
run: |
cd examples
Expand Down
6 changes: 6 additions & 0 deletions vulkano-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ mod derive_vertex;
/// Derives the [`Vertex`] trait.
///
/// [`Vertex`]: https://docs.rs/vulkano/latest/vulkano/pipeline/graphics/vertex_input/trait.Vertex.html
#[allow(unused, unreachable_code)]
#[proc_macro_derive(Vertex, attributes(name, format))]
pub fn derive_vertex(input: TokenStream) -> TokenStream {
panic!("{}", env!("CARGO_MANIFEST_DIR"));

let ast = parse_macro_input!(input as DeriveInput);

derive_vertex::derive_vertex(ast)
Expand All @@ -33,8 +36,11 @@ pub fn derive_vertex(input: TokenStream) -> TokenStream {
/// Derives the [`BufferContents`] trait.
///
/// [`BufferContents`]: https://docs.rs/vulkano/latest/vulkano/buffer/trait.BufferContents.html
#[allow(unused, unreachable_code)]
#[proc_macro_derive(BufferContents)]
pub fn derive_buffer_contents(input: TokenStream) -> TokenStream {
panic!("{}", env!("CARGO_MANIFEST_DIR"));

let ast = parse_macro_input!(input as DeriveInput);

derive_buffer_contents::derive_buffer_contents(ast)
Expand Down

0 comments on commit 35fe4a8

Please # to comment.