I am using both diesel 2.0 and oso in a project, if I define a struct:
#[derive(PolarClass)]
#[diesel(table_name = accounts)]
pub struct Account {
#[polar(attribute)]
pub id: Uuid,
pub email: String,
}
get error:
proc-macro derive panicked
message: called `Result::unwrap()` on an `Err` value: Error("expected literal")
if use #[table_name = "accounts"]
, will not have the above problem. Other structs with #[diesel(table_name = accounts)]
that don't use PalorClass don't have this problem either
Here is demo: GitHub - Siceberg/oso-diesel2-conflict-demo: oso diesel2 conflict demo