title: `xargo build` cannot find library
body: <p>So I'm following <a href="https://os.phil-opp.com/set-up-rust/" rel="nofollow noreferrer">this tutorial</a> on how to create a VERY BASIC Operating System using the Rust programming language. (I intend on buying an actual book on the subject, but I'm using this for now).</p>
  <p>Here are some files we created just to clarify things a little:</p>
  <blockquote>
  <p>Cargo.toml</p>
  <pre><code>[package]
  name = &quot;blog_os&quot;
  version = &quot;0.1.0&quot;
  authors = [&quot;Philipp Oppermann &lt;dev@phil-opp.com&gt;&quot;]   # Here I used my own details
  
  [lib]
  crate-type = [&quot;staticlib&quot;]
  </code></pre>
  <p>src/lib.rs</p>
  <pre><code>#![feature(lang_items)]
  #![no_std]
  
  #[no_mangle]
  pub extern fn rust_main() {}
  
  #[lang = &quot;eh_personality&quot;] extern fn eh_personality() {}
  #[lang = &quot;panic_fmt&quot;] #[no_mangle] pub extern fn panic_fmt() -&gt; ! {loop{}}
  </code></pre>
  <p>x86_64-blog_os.json</p>
  <pre><code>{
    &quot;llvm-target&quot;: &quot;x86_64-unknown-none&quot;,
    &quot;data-layout&quot;: &quot;e-m:e-i64:64-f80:128-n8:16:32:64-S128&quot;,
    &quot;linker-flavor&quot;: &quot;gcc&quot;,
    &quot;target-endian&quot;: &quot;little&quot;,
    &quot;target-pointer-width&quot;: &quot;64&quot;,
    &quot;target-c-int-width&quot;: &quot;32&quot;,
    &quot;arch&quot;: &quot;x86_64&quot;,
    &quot;os&quot;: &quot;none&quot;,
    &quot;disable-redzone&quot;: true,
    &quot;features&quot;: &quot;-mmx,-sse,+soft-float&quot;
  }
  </code></pre>
  </blockquote>
  <p>If you scroll down to the <strong>Compiling</strong> section in the tutorial, the author shows us how to install <code>xargo</code> and how to use it to <code>build</code>.</p>
  <p>We're then asked to run:</p>
  <pre><code>&gt; xargo build --target=x86_64-blog_os
  </code></pre>
  <p>But when I do, I get the following error message:</p>
  <pre><code>error: failed to parse manifest at '/home/max/TesterOS/src/Cargo.toml'
  
  Caused by:
    can't find library 'blog_os', rename file to 'src/lib.rs' or specify lib.path
  </code></pre>
  <p>Is the issue connected to where I saved my files? Because I followed the tutorial down to the letter, but the author wasn't specific in where everything should be saved.</p>