Simply adding the nyx dependency to a cargo.toml and running a build produces errors.
Is this a rust version issue??!
What is going wrong here?!?
[dependencies]
nyx-space = "0.0.20"
cargo run
error[E0277]: the trait bound <Self as AutoDiff>::HyperStateSize: dynamics::hyperdual::DimName
is not satisfied
--> C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\nyx-space-0.0.20\src\dynamics\mod.rs:112:5
|
112 | / fn dual_eom(
113 | | &self,
114 | | epoch: Epoch,
115 | | integr_frame: Frame,
... |
125 | | + Allocator<Hyperdual<f64, Self::HyperStateSize>, Self::STMSize>,
126 | | Owned<f64, Self::HyperStateSize>: Copy;
| |_______________________________________________^ the trait dynamics::hyperdual::DimName
is not implemented for <Self as AutoDiff>::HyperStateSize
|
= note: required because of the requirements on the impl of dynamics::hyperdual::Allocator<f64, <Self as AutoDiff>::HyperStateSize>
for dynamics::hyperdual::DefaultAllocator
help: consider further restricting the associated type
|
126 | Owned<f64, Self::HyperStateSize>: Copy, ::HyperStateSize: dynamics::hyperdual::DimName;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound na::DefaultAllocator: na::allocator::Allocator<Hyperdual<f64, na::U7>, na::Dynamic, na::Dynamic>
is not satisfied
--> C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\nyx-space-0.0.20\src\dynamics\sph_harmonics.rs:196:11
|
196 | a_nm: DMatrix<Hyperdual<f64, U7>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait na::allocator::Allocator<Hyperdual<f64, na::U7>, na::Dynamic, na::Dynamic>
is not implemented for na::DefaultAllocator
|
= help: the following implementations were found:
<na::DefaultAllocator as na::allocator::Allocator<N, R, C>>
<na::DefaultAllocator as na::allocator::Allocator<N, R, na::Dynamic>>
<na::DefaultAllocator as na::allocator::Allocator<N, na::Dynamic, C>>
error[E0277]: the trait bound na::U7: dynamics::hyperdual::DimName
is not satisfied
--> C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\nyx-space-0.0.20\src\dynamics\sph_harmonics.rs:196:11
|
196 | a_nm: DMatrix<Hyperdual<f64, U7>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait dynamics::hyperdual::DimName
is not implemented for na::U7
|
::: C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\hyperdual-0.3.7\src\lib.rs:71:49
|
71 | pub struct Hyperdual<T: Copy + Scalar, N: Dim + DimName>(VectorN<T, N>)
| ------- required by this bound in Hyperdual
error[E0277]: the trait bound <Self as AutoDiff>::HyperStateSize: dynamics::hyperdual::DimName
is not satisfied
--> C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\nyx-space-0.0.20\src\dynamics\mod.rs:112:8
|
112 | fn dual_eom(
| ^^^^^^^^ the trait dynamics::hyperdual::DimName
is not implemented for <Self as AutoDiff>::HyperStateSize
|
= note: required because of the requirements on the impl of dynamics::hyperdual::Allocator<f64, <Self as AutoDiff>::HyperStateSize>
for dynamics::hyperdual::DefaultAllocator
help: consider further restricting the associated type
|
126 | Owned<f64, Self::HyperStateSize>: Copy, ::HyperStateSize: dynamics::hyperdual::DimName;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound <Self as AutoDiff>::HyperStateSize: dynamics::hyperdual::Dim
is not satisfied
--> C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\nyx-space-0.0.20\src\dynamics\mod.rs:116:16
|
116 | state: &VectorN<Hyperdual<f64, Self::HyperStateSize>, Self::STMSize>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait dynamics::hyperdual::Dim
is not implemented for <Self as AutoDiff>::HyperStateSize
|
::: C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\hyperdual-0.3.7\src\lib.rs:71:43
|
71 | pub struct Hyperdual<T: Copy + Scalar, N: Dim + DimName>(VectorN<T, N>)
| --- required by this bound in Hyperdual
|
help: consider further restricting the associated type
|
126 | Owned<f64, Self::HyperStateSize>: Copy, ::HyperStateSize: dynamics::hyperdual::Dim;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound na::U7: dynamics::hyperdual::DimName
is not satisfied
--> C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\nyx-space-0.0.20\src\dynamics\orbital.rs:224:16
|
224 | state: &VectorN<Hyperdual<f64, U7>, U6>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait dynamics::hyperdual::DimName
is not implemented for na::U7
|
::: C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\hyperdual-0.3.7\src\lib.rs:71:49
|
71 | pub struct Hyperdual<T: Copy + Scalar, N: Dim + DimName>(VectorN<T, N>)
| ------- required by this bound in Hyperdual
error[E0277]: the trait bound na::U7: dynamics::hyperdual::DimName
is not satisfied
--> C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\nyx-space-0.0.20\src\dynamics\orbital.rs:456:16
|
456 | state: &VectorN<Hyperdual<f64, U7>, U3>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait dynamics::hyperdual::DimName
is not implemented for na::U7
|
::: C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\hyperdual-0.3.7\src\lib.rs:71:49
|
71 | pub struct Hyperdual<T: Copy + Scalar, N: Dim + DimName>(VectorN<T, N>)
| ------- required by this bound in Hyperdual
error[E0277]: the trait bound na::U7: dynamics::hyperdual::DimName
is not satisfied
--> C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\nyx-space-0.0.20\src\dynamics\sph_harmonics.rs:298:17
|
298 | radius: &Vector3<Hyperdual<f64, U7>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait dynamics::hyperdual::DimName
is not implemented for na::U7
|
::: C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\hyperdual-0.3.7\src\lib.rs:71:49
|
71 | pub struct Hyperdual<T: Copy + Scalar, N: Dim + DimName>(VectorN<T, N>)
| ------- required by this bound in Hyperdual
error[E0277]: the trait bound na::U7: dynamics::hyperdual::DimName
is not satisfied
--> C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\nyx-space-0.0.20\src\od\ranging.rs:184:16
|
184 | state: &VectorN<Hyperdual<f64, U7>, U6>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait dynamics::hyperdual::DimName
is not implemented for na::U7
|
::: C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\hyperdual-0.3.7\src\lib.rs:71:49
|
71 | pub struct Hyperdual<T: Copy + Scalar, N: Dim + DimName>(VectorN<T, N>)
| ------- required by this bound in Hyperdual
error[E0277]: the trait bound na::U7: dynamics::hyperdual::DimName
is not satisfied
--> C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\nyx-space-0.0.20\src\od\ranging.rs:325:16
|
325 | state: &VectorN<Hyperdual<f64, U7>, U6>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait dynamics::hyperdual::DimName
is not implemented for na::U7
|
::: C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\hyperdual-0.3.7\src\lib.rs:71:49
|
71 | pub struct Hyperdual<T: Copy + Scalar, N: Dim + DimName>(VectorN<T, N>)
| ------- required by this bound in Hyperdual
error[E0277]: the trait bound na::U7: dynamics::hyperdual::DimName
is not satisfied
--> C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\nyx-space-0.0.20\src\od\ranging.rs:414:16
|
414 | state: &VectorN<Hyperdual<f64, U7>, U6>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait dynamics::hyperdual::DimName
is not implemented for na::U7
|
::: C:\Users\jsima.cargo\registry\src\github.com-1ecc6299db9ec823\hyperdual-0.3.7\src\lib.rs:71:49
|
71 | pub struct Hyperdual<T: Copy + Scalar, N: Dim + DimName>(VectorN<T, N>)
| ------- required by this bound in Hyperdual
error: aborting due to 11 previous errors
For more information about this error, try rustc --explain E0277
.
error: could not compile nyx-space