PR #186 improved the ergonomics of writing constraints and gadgets, but regressed the ergonomics of profiling and debugging constraints. This PR attempts to rectify that by moving to an API based on the tracing crate. To enter a namespace, simply annotate the relevant function with the tracing::instrument attribute, with target = "r1cs":
Blocked on #186
PR #186 improved the ergonomics of writing constraints and gadgets, but regressed the ergonomics of profiling and debugging constraints. This PR attempts to rectify that by moving to an API based on the
tracing
crate. To enter a namespace, simply annotate the relevant function with thetracing::instrument
attribute, withtarget = "r1cs"
:See
r1cs_std
for examples.Closes #250