I used the 3d TikZ library to draw a circle in the z-y plane around a line along the x axis. But since the circle is drawn on top of the line, it does not look like the line passes through the circle.
How can I fix this? The solution that comes to mind is to draw two semicircles or two line segment, but that would get messy with complex shapes. Is there a more general solution or a better package to achieve this?

\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{3d}
\begin{document}
\begin{tikzpicture}
\begin{scope}[canvas is xy plane at z=0]
\draw[color=green,very thick] (0,0) -- (2,0);
\end{scope}
\begin{scope}[canvas is zy plane at x=1]
\draw[color=blue,very thick] (0,0) circle (1);
\end{scope}
\end{tikzpicture}
\end{document}
