Skip to content

Commit

Permalink
println! debugging :P
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Sep 12, 2024
1 parent 0134b23 commit f2ad3b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,6 @@ jobs:
package_vm:
docker:
- image: rust:1.74
environment:
CARGO_INCREMENTAL: "0"
steps:
- checkout
- run:
Expand Down
1 change: 1 addition & 0 deletions packages/vm-derive-impl/src/hash_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub fn hash_function_impl(attr: TokenStream, input: TokenStream) -> TokenStream
let _: syn::ItemFn = maybe!(syn::parse2(input.clone()));

let display = input.to_string();
panic!("display: {:?}", display);
let hex_hash = blake3::hash(display.as_bytes()).to_hex();
let hex_hash = hex_hash.as_str();

Expand Down
4 changes: 3 additions & 1 deletion packages/vm-derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
use std::fmt::Debug;

pub struct Hash(pub &'static str);

inventory::collect!(Hash);

#[inline]
pub fn collect_hashes() -> impl Iterator<Item = &'static str> {
pub fn collect_hashes() -> impl Iterator<Item = &'static str> + Debug {
let mut hashes = inventory::iter::<Hash>
.into_iter()
.map(|hash| hash.0)
Expand Down

0 comments on commit f2ad3b3

Please sign in to comment.