to use `async fn`, switch to Rust 2018 or later

I’m trying to compile a lib in rust and I get the following error: to use `async fn`, switch to Rust 2018 or later This is my cargo.toml: [package] name = "name" version = "0.1.0" edition = "2018" and to compile I use the following command line (documentation here): rustc –crate-type=lib src/apis/my_file.rs does anyone have… Read More to use `async fn`, switch to Rust 2018 or later

How can rollup plugins generate its .d.ts types with .js file

As title, how can rollup plugins generate its .d.ts types with .js file without jsdoc. for example, I can’t find jsdoc and .ts file in rollup-plugin-commonjs (https://github.com/rollup/plugins/tree/master/packages/commonjs), but this package has its .d.ts declaration. rollup-plugin-commonjs >Solution : .d.ts files don’t need to be automatically generated from JSDoc or .ts files, they can be manually written.… Read More How can rollup plugins generate its .d.ts types with .js file

Import C++ library that hasn't .dll or .lib files inside

So I have two examples of these libraries for printing nice tables. First and second. I’ve watched MANY videos on "How to install/include/import a library into your C++ project" and each one talks about changing Visual Studio solution properties like C/C++ -> General -> Additional Include Directories, Linker -> General -> Additional Library Directories and… Read More Import C++ library that hasn't .dll or .lib files inside