Skip to content

use_f64 feature is not additive #72

@nikita240

Description

@nikita240

I'm facing a problem due to feature unification caused by use_f64 not being additive.

I depend on rerun in my project, which uses tobj in f32 mode, but I also use tobj in my project, but I need f64 mode. Due to feature unification, rerun's tobj gets the use_f64 feature enabled and it starts spitting out errors from it's internal code.

error[E0308]: arguments to this function are incorrect
  --> /opt/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/re_renderer-0.23.4/src/importer/obj.rs:44:22
   |
44 |             .map(|p| glam::vec3(p[0], p[1], p[2]))
   |                      ^^^^^^^^^^ ----  ----  ---- expected `f32`, found `f64`
   |                                 |     |
   |                                 |     expected `f32`, found `f64`
   |                                 expected `f32`, found `f64`
   |
note: function defined here
  --> /opt/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/glam-0.28.0/src/f32/vec3.rs:13:14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions