Why is the MIME type of the application Rust / x-sharedlib?
I have two Hello World programs written in C ++ and Rust:
main.cpp
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!" << endl;
}
main.rs
fn main() { println!("Hello World!"); }
I have compiled both of them with the following commands:
g++ main.cpp -o Test.bin
and
rustc main.rs -o Test-Rust.bin
Checking for the MIME type of the C ++ binary returned the executable as I expected:
$ file --mime-type Test.bin Test.bin: application/x-executable
But the Rust binary looks like a shared library:
$ file --mime-type Test-Rust.bin Test-Rust.bin: application/x-sharedlib
Why doesn't the Rust compiler output a simple application, for example g++
?
+3
source to share
No one has answered this question yet
See similar questions:
or similar: